Skip to content

Commit 6525155

Browse files
authored
fix(build): add step to Makefile to generate signing gpg key (#922); chore: fix the .phony target name for multiarch-image-push (#923) (#1082)
Signed-off-by: Cheng Fang <[email protected]>
1 parent 1d02916 commit 6525155

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ multiarch-image:
101101
--platform ${RELEASE_IMAGE_PLATFORMS} ${DOCKERX_PUSH} \
102102
.
103103

104-
.PHONY: multiarch-image
104+
.PHONY: multiarch-image-push
105105
multiarch-image-push:
106106
docker buildx build \
107107
-t ${IMAGE_PREFIX}${IMAGE_NAME}:${IMAGE_TAG} \
@@ -124,7 +124,8 @@ release-binaries:
124124
BINNAME=argocd-image-updater-win64.exe OUTDIR=dist/release OS=windows ARCH=amd64 make controller
125125
rm -f dist/release/release-v${VERSION}.sha256 dist/release/release-v${VERSION}.sha256.asc
126126
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
127+
gpg --batch --generate-key hack/gpg-key.conf
128+
gpg --default-key [email protected] -a --detach-sign dist/release/release-v${VERSION}.sha256
128129
gpg -a --verify dist/release/release-v${VERSION}.sha256.asc
129130

130131
.PHONY: extract-binary

hack/gpg-key.conf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
%no-protection
2+
%echo Generating a standard key
3+
Key-Type: RSA
4+
Key-Length: 3072
5+
Subkey-Type: RSA
6+
Subkey-Length: 3072
7+
Name-Real: argocd-image-updater
8+
Name-Comment: signing key
9+
Name-Email: [email protected]
10+
Expire-Date: 1
11+
%commit
12+
%echo done
13+

0 commit comments

Comments
 (0)