Skip to content

Commit

Permalink
fix(build): add step to Makefile to generate signing gpg key
Browse files Browse the repository at this point in the history
Signed-off-by: Cheng Fang <[email protected]>
  • Loading branch information
chengfang committed Nov 8, 2024
1 parent e8c7d00 commit 6a8f03b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ release-binaries:
BINNAME=argocd-image-updater-win64.exe OUTDIR=dist/release OS=windows ARCH=amd64 make controller
rm -f dist/release/release-v${VERSION}.sha256 dist/release/release-v${VERSION}.sha256.asc
for bin in dist/release/argocd-image-updater-*; do sha256sum "$$bin" >> dist/release/release-v${VERSION}.sha256; done
gpg -a --detach-sign dist/release/release-v${VERSION}.sha256
gpg --batch --generate-key hack/gpg-key.conf
gpg --default-key [email protected] -a --detach-sign dist/release/release-v${VERSION}.sha256
gpg -a --verify dist/release/release-v${VERSION}.sha256.asc

.PHONY: extract-binary
Expand Down
13 changes: 13 additions & 0 deletions hack/gpg-key.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
%no-protection
%echo Generating a standard key
Key-Type: RSA
Key-Length: 3072
Subkey-Type: RSA
Subkey-Length: 3072
Name-Real: argocd-image-updater
Name-Comment: signing key
Name-Email: [email protected]
Expire-Date: 1
%commit
%echo done

0 comments on commit 6a8f03b

Please sign in to comment.