Skip to content

Commit a5acd25

Browse files
authored
fix: add build steps to create binary checksum and signature files (#901)
Signed-off-by: Cheng Fang <cfang@redhat.com>
1 parent e370a64 commit a5acd25

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ release-binaries:
122122
BINNAME=argocd-image-updater-darwin_amd64 OUTDIR=dist/release OS=darwin ARCH=amd64 make controller
123123
BINNAME=argocd-image-updater-darwin_arm64 OUTDIR=dist/release OS=darwin ARCH=arm64 make controller
124124
BINNAME=argocd-image-updater-win64.exe OUTDIR=dist/release OS=windows ARCH=amd64 make controller
125+
rm -f dist/release/release-v${VERSION}.sha256 dist/release/release-v${VERSION}.sha256.asc
126+
for bin in dist/release/argocd-image-updater-*; do sha256sum "$$bin" >> dist/release/release-v${VERSION}.sha256; done
127+
gpg -a --detach-sign dist/release/release-v${VERSION}.sha256
128+
gpg -a --verify dist/release/release-v${VERSION}.sha256.asc
125129

126130
.PHONY: extract-binary
127131
extract-binary:

0 commit comments

Comments
 (0)