Skip to content

Commit 86dd586

Browse files
author
Alex Malgaroli
authored
Merge pull request #37 from CurrencyFair/fix_deploy
more logging, changed expiration date
2 parents 9c8f5cb + 03de058 commit 86dd586

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.travis/gpg.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cat >gen-key-script <<EOF
1212
Key-Length: 4096
1313
Name-Real: CurrencyFair
1414
Name-Email: [email protected]
15-
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
3536
shred 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"
4042
gpg --keyserver keyserver.ubuntu.com --send-keys ${GPG_KEYNAME}
4143

4244
# check that the key is accessible
4345
mkdir -m 700 ./gpgtest
46+
echo "Checking key ${GPG_KEYNAME} is on keyserver.ubuntu.com"
4447
while(true); do
4548
date
4649
GNUPGHOME=./gpgtest gpg --keyserver keyserver.ubuntu.com --recv-keys ${GPG_KEYNAME} && break || sleep 30

0 commit comments

Comments
 (0)