Skip to content

Commit 3c6f823

Browse files
committed
Add "pgp-happy-eyeballs" in Travis to help cut down on gpg-related issues
1 parent 398cd8f commit 3c6f823

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,18 @@ install:
1212

1313
before_script:
1414
- env | sort
15+
- wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
1516
- cd "$VERSION"
1617
- image="ghost:$VERSION-$VARIANT"
1718

1819
script:
19-
- travis_retry docker build -t "$image" "$VARIANT"
20-
- ~/official-images/test/run.sh "$image"
20+
- |
21+
(
22+
set -Eeuo pipefail
23+
set -x
24+
docker build -t "$image" .
25+
~/official-images/test/run.sh "$image"
26+
)
2127
2228
after_script:
2329
- docker images

0/debian/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ RUN set -x \
1212
&& export GNUPGHOME="$(mktemp -d)" \
1313
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
1414
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
15+
&& { command -v gpgconf && gpgconf --kill all || :; } \
1516
&& rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc \
1617
&& chmod +x /usr/local/bin/gosu \
1718
&& gosu nobody true

1/debian/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ RUN set -x \
1010
&& export GNUPGHOME="$(mktemp -d)" \
1111
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
1212
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
13+
&& { command -v gpgconf && gpgconf --kill all || :; } \
1314
&& rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc \
1415
&& chmod +x /usr/local/bin/gosu \
1516
&& gosu nobody true

0 commit comments

Comments
 (0)