Configure new versions of your application (docker images) for automated deployment. The aim of this action is aiding automated deployment processes using tools like Helm and ArgoCD. It takes yaml configuration files and replaces all version tags with a new one using a standard format e.g.:
my-app-tag: v0.0The action will look in the working directory for a file called values-[phase] by default and change all application
tags using the above format.
The action expects three configuration files in cascade mode: values-dev.yaml, values-stage.yaml, and values-prod.yaml
whereby the prefix values- can be set using the prefix option.
Application version tags are changed by phaseusing the following rules:
phasedev changes values-dev.yaml onlyphasestage changes the config files for dev and stagephaseprod changes the config files for all phases
| option | required | default | description |
|---|---|---|---|
| app | true | None | Name of the application |
| phase | true | dev | Deployment phase (dev, stage, prod, ignore) |
| tag | true | None | Version tag |
| prefix | false | values- | Prefix of the configuration file |
| working-directory | false | ./ | Working directory |
| mode | false | cascading | Whether to cascade |
| delimiter | false | : | Delimiter between app and version tag |
- name: set-version-tag-cate
uses: actions/update-application-version-tags@main
with:
app: my-app
phase: dev
tag: v0.0.0