summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheng Fang <cfang@redhat.com>2024-10-30 03:58:58 -0400
committerGitHub <noreply@github.com>2024-10-30 09:58:58 +0200
commita5acd25853dd19a5186c1cc3801bf9e5cfa052dc (patch)
tree66d82933508ea242f9b94af7fd40fd8b165a6ef8
parente370a644fcc8580aed78804c49fae17472420c71 (diff)
fix: add build steps to create binary checksum and signature files (#901)
Signed-off-by: Cheng Fang <cfang@redhat.com>
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index decc81c..6c36f8d 100644
--- a/Makefile
+++ b/Makefile
@@ -122,6 +122,10 @@ release-binaries:
BINNAME=argocd-image-updater-darwin_amd64 OUTDIR=dist/release OS=darwin ARCH=amd64 make controller
BINNAME=argocd-image-updater-darwin_arm64 OUTDIR=dist/release OS=darwin ARCH=arm64 make controller
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 -a --verify dist/release/release-v${VERSION}.sha256.asc
.PHONY: extract-binary
extract-binary: