Github Action to bump chartVersion
and appVersion
in Mittwald Helm Charts.
Optionally, the new chart version can be published to helm.mittwald.de.
The chart version is automatically determined using the GITHUB_REF
environment variable: TAG="${GITHUB_REF##*/}"
.
If mode
is publish
, the resulting pipeline will be triggered to publish the new chart version to helm.mittwald.de.
version
is the version to use for version
and appVersion
in the Chart.yaml
.
Location to the Chart.yaml
of the helm-chart relative to the repository root.
Token to pull/push to the repo this action runs in.
Username to access the helm chart repository.
Password to access the helm chart repository.
Include the action in your workflow:
name: Publish Chart
on:
push:
tags:
- '*'
jobs:
release:
steps:
- name: Run chart version bump
uses: mittwald/bump-app-version-action@v1
with:
mode: 'publish'
chartYaml: './deploy/chart/Chart.yaml'
env:
GITHUB_TOKEN: "${{ secrets.githubToken }}"
HELM_REPO_PASSWORD: "${{ secrets.HELM_REPO_PASSWORD }}"
New releases are always published as v1
beside their unique version number.
This allows us to always use the latest version of this action without updating
every workflow that uses this action.
git tag v1 --force
git tag v0.3.x
git push --tags --force