File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ cat >gen-key-script <<EOF
1212 Key-Length: 4096
1313 Name-Real: CurrencyFair
141415- Expire-Date: 0y
15+ Expire-Date: 1d
1616 Passphrase: ${GPG_PASSPHRASE}
1717 %commit
1818 %echo done
@@ -29,18 +29,21 @@ gpg --batch --gen-key gen-key-script
2929# uid Lars K.W. Gohlke <[email protected] >3030# ssb 4096R/CC1613B2 2016-09-08
3131# ssb 4096R/55B7CAA2 2016-09-08
32- export GPG_KEYNAME=$( gpg -K | grep ^\\ s | head -n1)
32+ gpg -K
33+ export GPG_KEYNAME=$( gpg -K | grep ^sec | cut -d/ -f2 | cut -d\ -f1 | head -n1)
3334
3435# cleanup local configuration
3536shred gen-key-script
3637
3738# publish the gpg key
3839# (use keyserver.ubuntu.com as travis request keys from this server,
3940# we avoid synchronization issues, while releasing)
41+ echo " Uploading key ${GPG_KEYNAME} to keyserver.ubuntu.com"
4042gpg --keyserver keyserver.ubuntu.com --send-keys ${GPG_KEYNAME}
4143
4244# check that the key is accessible
4345mkdir -m 700 ./gpgtest
46+ echo " Checking key ${GPG_KEYNAME} is on keyserver.ubuntu.com"
4447while(true); do
4548 date
4649 GNUPGHOME=./gpgtest gpg --keyserver keyserver.ubuntu.com --recv-keys ${GPG_KEYNAME} && break || sleep 30
You can’t perform that action at this time.
0 commit comments