Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/helm_release.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
name: Release Charts

env:
HELM_VERSION_TO_INSTALL: 3.14.0
GCR_IMAGE: ghcr.io/${{ github.repository_owner }}

on:
workflow_dispatch:

jobs:
release:
permissions:
contents: write
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -33,3 +37,16 @@ jobs:
cr package
cr upload --owner="$owner" --git-repo "$repo" --token="$CR_TOKEN" --release-name-template="v{{ .Version }}" --packages-with-index --push --skip-existing --generate-release-notes --commit main
cr index --owner="$owner" --git-repo "$repo" --token="$CR_TOKEN" --release-name-template="v{{ .Version }}" --packages-with-index --push --index-path="."

- name: install helm
uses: Azure/[email protected]
with:
# Version of helm
version: ${{ env.HELM_VERSION_TO_INSTALL }} # default is latest

- name: publish to oci registry
run: |
echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ghcr.io --username ${{ github.repository_owner }} --password-stdin
helm package ${{ github.workspace }}/
package=`ls -t docker-registry-*.tgz | head -n 1`
helm push "${package}" oci://${{ env.GCR_IMAGE }}