name: Release on: push: tags: - "**" jobs: publish-chart: container: image: docker.io/volkerraschek/helm:3.16.1 runs-on: ubuntu-latest steps: - name: Install tooling run: | apk update apk add git npm - uses: actions/checkout@v4 # - name: Import GPG key # id: import_gpg # uses: https://github.com/crazy-max/ghaction-import-gpg@v6 # with: # gpg_private_key: ${{ secrets.GPGSIGN_KEY }} # passphrase: ${{ secrets.GPGSIGN_PASSPHRASE }} # fingerprint: CC64B1DB67ABBEECAB24B6455FC346329753F4B0 # Using helm gpg plugin as 'helm package --sign' has issues with gpg2: https://github.com/helm/helm/issues/2843 - name: package chart env: HELM_REPO_NAME: test HELM_REPO_PASSWORD: ${{ secrets.HELM_REPO_PASSWORD }} HELM_REPO_USERNAME: ${{ secrets.HELM_REPO_USERNAME }} run: | REPOSITORY_NAME=$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 2) PACKAGE_VERSION=${GITHUB_REF#refs/tags/v} echo $REPOSITORY_NAME echo $PACKAGE_VERSION helm repo add ${HELM_REPO_NAME} https://charts.cryptic.systems/${HELM_REPO_NAME} helm dependency build helm package --version "${PACKAGE_VERSION}" ./ helm cm-push ${REPOSITORY_NAME}-${PACKAGE_VERSION}.tgz ${HELM_REPO_NAME}