Do not hardcode the GPG key id fetch it from online SKS servers
authorSofian Brabez <sofian.brabez@gonitro.com>
Fri, 30 Nov 2018 14:57:10 +0000 (14:57 +0000)
committerSofian Brabez <sofian.brabez@gonitro.com>
Fri, 30 Nov 2018 14:57:10 +0000 (14:57 +0000)
release.sh

index 89a98a368a198841d5aa90a41e5d7c5668d7ac6f..ffa513de727614026386bf6eda9c1420cc5a9ad8 100755 (executable)
@@ -17,7 +17,7 @@ VERSION="2:`cat ${PWD}/docker-gc/version.txt`~${COMMIT}"
 TAG="gonitro/docker-gc-build:${COMMIT}"
 AWS_REGION=us-west-2
 BUCKET=nitro-apt-repo
-NITRO_GPG_KEY=C5075270
+NITRO_GPG_KEY=`gpg --batch --search-keys  --with-colons infra-guild@gonitro.com 2>&1| sed -E -n 's/^pub:.*(........):.*:.*:.*::/\1/p'`
 
 printf  "[+] Using GPG %s for package signature\n" ${NITRO_GPG_KEY}