Skip to content

Commit d2eb07a

Browse files
authored
Fix archive signing step (#4099)
1 parent 56e627c commit d2eb07a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/package-deploy.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,13 @@ package zip windows-amd64 .exe
7272
package tar linux-s390x
7373
package tar linux-arm64
7474
package tar linux-ppc64le
75+
7576
# Create a checksum file for all non-checksum files in the deploy directory. Strips the leading 'deploy/' directory from filepaths. Sort by filename.
7677
find deploy \( ! -name '*sha256sum.txt' \) -type f -exec shasum -b -a 256 {} \; | sed -r 's#(\w+\s+\*?)deploy/(.*)#\1\2#' | sort -k2 | tee ./deploy/jaeger-$VERSION.sha256sum.txt
77-
# Setup gpg and sign the keys to include the files in the package. Exclude the checksum files created.
78-
find deploy \( ! -name '*sha256sum.txt' \) -type f -exec gpg --armor --detach-sign {} \; | sed -r 's#(\w+\s+\*?)deploy/(.*)#\1\2#' | sort -k2 | tee ./deploy/jaeger-$VERSION.asc
78+
79+
# Use gpg to sign the (g)zip files (excluding checksum files) into .asc files.
80+
find deploy \( ! -name '*sha256sum.txt' \) -type f -exec gpg --armor --detach-sign {} \;
81+
82+
# show your work
83+
ls -lF deploy/
84+

0 commit comments

Comments
 (0)