Skip to content

Commit

Permalink
fix: Add legacy GPG keyring (#654)
Browse files Browse the repository at this point in the history
Signed-off-by: Brenno Oliveira <[email protected]>
  • Loading branch information
brennoo authored Jan 7, 2025
1 parent 5ceec05 commit 80a7b90
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/helm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ jobs:
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Save GPG passphrase
- name: Save GPG passphrase and legacy keyring
run: |
cat << EOF > passphrase.txt
${{ secrets.GPG_PASSPHRASE }}
EOF
gpg -o ~/.gnupg/pubring.gpg --export ${{ steps.import_gpg.outputs.keyid }}
gpg --batch --pinentry-mode loopback --passphrase $(cat passphrase.txt) -o ~/.gnupg/secring.gpg --export-secret-keys ${{ steps.import_gpg.outputs.keyid }}
- name: Package Helm Charts
shell: bash
run: |
Expand All @@ -44,7 +46,7 @@ jobs:
continue
fi
echo "$d"
helm package --sign "$d" -u --key ${{ steps.import_gpg.outputs.name }} --passphrase-file passphrase.txt
helm package --sign "$d" -u --key ${{ steps.import_gpg.outputs.name }} --passphrase-file passphrase.txt --keyring ~/.gnupg/secring.gpg
done
rm passphrase.txt
echo "Packing done"
Expand Down

0 comments on commit 80a7b90

Please sign in to comment.