From 45b347fd71df779cde9ecd0908413de23f4788db Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Fri, 5 May 2023 19:52:55 +0200 Subject: [PATCH] Update charts-release.yaml Signed-off-by: Kjeld Schouten --- .github/workflows/charts-release.yaml | 30 +++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml index 1106d9df37a..9e948108168 100644 --- a/.github/workflows/charts-release.yaml +++ b/.github/workflows/charts-release.yaml @@ -77,6 +77,21 @@ jobs: helm repo add prometheus https://prometheus-community.github.io/helm-charts helm repo update + + # Optional step if GPG signing is used + - name: Prepare GPG key + run: | + gpg_dir=.cr-gpg + mkdir "$gpg_dir" + keyring="$gpg_dir/secring.gpg" + base64 -d <<< "$GPG_KEYRING_BASE64" > "$keyring" + passphrase_file="$gpg_dir/passphrase" + echo "$GPG_PASSPHRASE" > "$passphrase_file" + echo "CR_PASSPHRASE_FILE=$passphrase_file" >> "$GITHUB_ENV" + echo "CR_KEYRING=$keyring" >> "$GITHUB_ENV" + env: + GPG_KEYRING_BASE64: "${{ secrets.GPG_KEYRING_BASE64 }}" + GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}" - name: Checkout uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3 @@ -271,21 +286,6 @@ jobs: run: | git config user.name "TrueCharts-Bot" git config user.email "bot@truecharts.org" - - # Optional step if GPG signing is used - - name: Prepare GPG key - run: | - gpg_dir=.cr-gpg - mkdir "$gpg_dir" - keyring="$gpg_dir/secring.gpg" - base64 -d <<< "$GPG_KEYRING_BASE64" > "$keyring" - passphrase_file="$gpg_dir/passphrase" - echo "$GPG_PASSPHRASE" > "$passphrase_file" - echo "CR_PASSPHRASE_FILE=$passphrase_file" >> "$GITHUB_ENV" - echo "CR_KEYRING=$keyring" >> "$GITHUB_ENV" - env: - GPG_KEYRING_BASE64: "${{ secrets.GPG_KEYRING_BASE64 }}" - GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}" - name: Run chart-releaser for dependency apps uses: helm/chart-releaser-action@be16258da8010256c6e82849661221415f031968 # v1.5.0