From e81e28d71c3fbe78ae4152fdf7d07f42b0469d3a Mon Sep 17 00:00:00 2001 From: Christian Huth Date: Tue, 1 Oct 2024 14:18:34 +0200 Subject: [PATCH] Update chart-releaser.yaml --- .github/workflows/chart-releaser.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/chart-releaser.yaml b/.github/workflows/chart-releaser.yaml index 1146363..f978672 100644 --- a/.github/workflows/chart-releaser.yaml +++ b/.github/workflows/chart-releaser.yaml @@ -25,7 +25,17 @@ jobs: git config user.name "$GITHUB_ACTOR" git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + # Optional step if GPG signing is used + - name: Import GPG key + run: | + echo "${{ secrets.GPG_PRIVATE_KEY_BASE64 }}" | base64 -d | gpg --dearmor --output keyring.gpg + echo "${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}" > passphrase-file.txt + - name: Run chart-releaser uses: helm/chart-releaser-action@v1.6.0 env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + CR_KEY: "${{ secrets.GPG_PRIVATE_KEY_UID }}" + CR_KEYRING: keyring.gpg + CR_PASSPHRASE_FILE: passphrase-file.txt + CR_SIGN: true