Skip to content

Commit

Permalink
Merge pull request #11 from tianon/pgp-happy-eyeballs
Browse files Browse the repository at this point in the history
Add "pgp-happy-eyeballs" in Travis to help cut down on gpg-related issues
  • Loading branch information
tianon authored Jul 30, 2018
2 parents 4e6dad8 + 8b2e730 commit e3d8ed8
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,20 @@ install:

before_script:
- env | sort
- wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
- cd "$VERSION"
- image="bash:$VERSION"

script:
- travis_retry docker build -t "$image" .
- docker run -it --rm "$image" --version
- docker run -it --rm "$image" echo hi
- ~/official-images/test/run.sh "$image"
- |
(
set -Eeuo pipefail
set -x
docker build -t "$image" .
docker run -it --rm "$image" --version
docker run -it --rm "$image" echo hi
~/official-images/test/run.sh "$image"
)
after_script:
- docker images
Expand Down
1 change: 1 addition & 0 deletions 3.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ RUN set -ex; \
export GNUPGHOME="$(mktemp -d)"; \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$_BASH_GPG_KEY"; \
gpg --batch --verify bash.tar.gz.sig bash.tar.gz; \
gpgconf --kill all; \
rm bash.tar.gz.sig; \
if [ -d bash-patches ]; then \
for sig in bash-patches/*.sig; do \
Expand Down
1 change: 1 addition & 0 deletions 3.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ RUN set -ex; \
export GNUPGHOME="$(mktemp -d)"; \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$_BASH_GPG_KEY"; \
gpg --batch --verify bash.tar.gz.sig bash.tar.gz; \
gpgconf --kill all; \
rm bash.tar.gz.sig; \
if [ -d bash-patches ]; then \
for sig in bash-patches/*.sig; do \
Expand Down
1 change: 1 addition & 0 deletions 3.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ RUN set -ex; \
export GNUPGHOME="$(mktemp -d)"; \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$_BASH_GPG_KEY"; \
gpg --batch --verify bash.tar.gz.sig bash.tar.gz; \
gpgconf --kill all; \
rm bash.tar.gz.sig; \
if [ -d bash-patches ]; then \
for sig in bash-patches/*.sig; do \
Expand Down
1 change: 1 addition & 0 deletions 4.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ RUN set -ex; \
export GNUPGHOME="$(mktemp -d)"; \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$_BASH_GPG_KEY"; \
gpg --batch --verify bash.tar.gz.sig bash.tar.gz; \
gpgconf --kill all; \
rm bash.tar.gz.sig; \
if [ -d bash-patches ]; then \
for sig in bash-patches/*.sig; do \
Expand Down
1 change: 1 addition & 0 deletions 4.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ RUN set -ex; \
export GNUPGHOME="$(mktemp -d)"; \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$_BASH_GPG_KEY"; \
gpg --batch --verify bash.tar.gz.sig bash.tar.gz; \
gpgconf --kill all; \
rm bash.tar.gz.sig; \
if [ -d bash-patches ]; then \
for sig in bash-patches/*.sig; do \
Expand Down
1 change: 1 addition & 0 deletions 4.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ RUN set -ex; \
export GNUPGHOME="$(mktemp -d)"; \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$_BASH_GPG_KEY"; \
gpg --batch --verify bash.tar.gz.sig bash.tar.gz; \
gpgconf --kill all; \
rm bash.tar.gz.sig; \
if [ -d bash-patches ]; then \
for sig in bash-patches/*.sig; do \
Expand Down
1 change: 1 addition & 0 deletions 4.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ RUN set -ex; \
export GNUPGHOME="$(mktemp -d)"; \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$_BASH_GPG_KEY"; \
gpg --batch --verify bash.tar.gz.sig bash.tar.gz; \
gpgconf --kill all; \
rm bash.tar.gz.sig; \
if [ -d bash-patches ]; then \
for sig in bash-patches/*.sig; do \
Expand Down
1 change: 1 addition & 0 deletions 4.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ RUN set -ex; \
export GNUPGHOME="$(mktemp -d)"; \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$_BASH_GPG_KEY"; \
gpg --batch --verify bash.tar.gz.sig bash.tar.gz; \
gpgconf --kill all; \
rm bash.tar.gz.sig; \
if [ -d bash-patches ]; then \
for sig in bash-patches/*.sig; do \
Expand Down

0 comments on commit e3d8ed8

Please sign in to comment.