An open API service indexing awesome lists of open source software.

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

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
```