57 lines
No EOL
1.6 KiB
YAML
57 lines
No EOL
1.6 KiB
YAML
name: Release Charts
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions: {}
|
|
jobs:
|
|
release:
|
|
permissions:
|
|
contents: write # to push chart release and create a release (helm/chart-releaser-action)
|
|
packages: write # needed for ghcr access
|
|
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Configure Git
|
|
run: |
|
|
git config user.name "$GITHUB_ACTOR"
|
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
|
|
|
- name: Set up Helm
|
|
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
|
|
with:
|
|
# renovate: datasource=github-releases depName=helm/helm
|
|
version: v3.17.0
|
|
|
|
- name: Run chart-releaser
|
|
uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 # v1.6.0
|
|
with:
|
|
charts_dir: charts
|
|
config: cr.yaml
|
|
env:
|
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
CR_SKIP_EXISTING: "true"
|
|
|
|
- name: Login to GHCR
|
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Push charts to GHCR
|
|
run: |
|
|
shopt -s nullglob
|
|
for pkg in .cr-release-packages/*.tgz; do
|
|
if [ -z "${pkg:-}" ]; then
|
|
break
|
|
fi
|
|
helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY}"
|
|
done |