No description
| .gitignore | ||
| action.yml | ||
| Dockerfile | ||
| entrypoint.sh | ||
| LICENSE | ||
| README.md | ||
Helm Publisher
A Forgejo/Gitea/GitHub Action for publishing Helm charts with Codeberg/Github Pages.
fork of https://github.com/stefanprodan/helm-gh-pages/
Usage
Inputs:
tokenThe GitHub token with write access to the target repositorycharts_dirThe charts directory, defaults tochartscharts_urlThe GitHub Pages URL, defaults tohttps://<OWNER>.github.io/<REPOSITORY>ownerThe GitHub user or org that owns this repository, defaults to the owner inGITHUB_REPOSITORYenv varrepositoryThe GitHub repository, defaults to theGITHUB_REPOSITORYenv varbranchThe branch to publish charts, defaults topagestarget_dirThe target directory to store the charts, defaults to.helm_versionThe Helm CLI version, defaults to the latest releaselintingToggle Helm linting, can be disabled by setting it tooffcommit_usernameExplicitly specify username for commit back, default toGITHUB_ACTORcommit_emailExplicitly specify email for commit back, default toGITHUB_ACTOR@users.noreply.github.comapp_versionExplicitly specify app version in package. If not defined then used chart values.chart_versionExplicitly specify chart version in package. If not defined then used chart values.index_dirThe location ofindex.yamlfile in the repo, defaults to the same value astarget_direnterprise_urlThe URL of enterprise github server in the format<server-url>/<organisation>dependenciesA list of helm repositories required to verify dependencies in the format<name>,<url>;<name>,<url>or if using private repositories<name>,<username>,<password>,<url>;<name>,<username>,<password>,<url>. Combinations are allowed.repo_urlThe URL of the git repositoryssh_private_keySSH private key for ssh connection to the target repository
Examples
Package and push all charts in ./charts dir to pages branch:
name: release
on:
push:
tags: '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Publish Helm charts
uses: https://git.devthefuture.org/devthefuture/helm-pages.git@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
Package and push charts in ./chart dir to pages branch in a different repository:
name: release-chart
on:
push:
tags: 'chart-*'
jobs:
release-chart:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Publish Helm chart
uses: https://git.devthefuture.org/devthefuture/helm-pages.git@master
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
charts_dir: chart
charts_url: https://charts.fluxcd.io
owner: fluxcd
repository: charts
branch: pages
target_dir: charts
commit_username: johndoe
commit_email: johndoe@example.com
Package chart with specified chart & app versions and push all charts in ./charts dir to pages branch:
name: release
on:
push:
tags: '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Publish Helm charts
uses: https://git.devthefuture.org/devthefuture/helm-pages.git@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
app_version: 1.16.0
chart_version: 0.1.0