Skip to content

Commit

Permalink
Extends the release process to push the helm chart
Browse files Browse the repository at this point in the history
Fixes using the wrong access token for releases.
  • Loading branch information
chr-fritz committed May 25, 2024
1 parent 0179e43 commit 3c2ae6d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,19 @@ jobs:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_CHARTS_PRIVATE_TOKEN }}
GOBIN: /usr/local/bin/

- name: Helm Installation
uses: azure/setup-helm@v4
with:
version: "latest" # default is latest (stable)
token: ${{ secrets.GITHUB_TOKEN }}

- name: Helm Package
run: helm package charts/${GITHUB_REPOSITORY#*/} --app-version "${GITHUB_REF_NAME}" --version "${GITHUB_REF_NAME#v}"

- name: Helm Push
run: |
CHART_PACKAGE_NAME="${GITHUB_REPOSITORY#*/}-helm-${GITHUB_REF_NAME#v}.tgz"
helm push "${CHART_PACKAGE_NAME}" oci://ghcr.io/$GITHUB_ACTOR

0 comments on commit 3c2ae6d

Please sign in to comment.