https://github.com/mittwald/bump-app-version-action
Github Action to set helm-chart version and publish to helm.mittwald.de
https://github.com/mittwald/bump-app-version-action
actions hacktoberfest helm
Last synced: about 1 year ago
JSON representation
Github Action to set helm-chart version and publish to helm.mittwald.de
- Host: GitHub
- URL: https://github.com/mittwald/bump-app-version-action
- Owner: mittwald
- Created: 2020-08-27T09:49:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-08T08:18:40.000Z (over 4 years ago)
- Last Synced: 2025-04-21T18:56:26.901Z (about 1 year ago)
- Topics: actions, hacktoberfest, helm
- Language: Shell
- Homepage:
- Size: 26.4 KB
- Stars: 6
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bump App Version Action
Github Action to bump `chartVersion` and `appVersion` in Mittwald Helm Charts.
Optionally, the new chart version can be published to [helm.mittwald.de](helm.mittwald.de).
The chart version is automatically determined using the `GITHUB_REF` environment variable: `TAG="${GITHUB_REF##*/}"`.
## Inputs
### `mode`
If `mode` is `publish`, the resulting pipeline will be triggered to publish the new chart version to [helm.mittwald.de](helm.mittwald.de).
### `version`
`version` is the version to use for `version` and `appVersion` in the `Chart.yaml`.
### `chartYaml`
Location to the `Chart.yaml` of the helm-chart relative to the repository root.
## Env
### `GITHUB_TOKEN`
Token to pull/push to the repo this action runs in.
### `HELM_REPO_USERNAME`
Username to access the helm chart repository.
### `HELM_REPO_PASSWORD`
Password to access the helm chart repository.
## Usage
Include the action in your workflow:
```yaml
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 }}"
```
## Contributing
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
```