Move docker login before docker pull. (#5281)

Ensure docker login happens before the docker-compose pull. Change install
section to a more appropriate before_script section for the docker login
and pull.
This commit is contained in:
Andrew Gabbitas 2021-02-11 12:07:01 -07:00 committed by GitHub
parent acf5873311
commit 0a4b600a09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -41,15 +41,15 @@ jobs:
allow_failures:
- env: TESTFLAGS="--coverage" CONTAINER="netaccess"
install:
- docker-compose pull
script:
before_script:
# This user is stored in the TravisCI repository settings in the UI As
# of 2021-01-20 it is a read-only user in DockerHub but is used to
# bypass rate limits imposed by DockerHub to non-authenticated
# non-paying users.
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin || true
- docker-compose pull
script:
- >-
docker-compose run --use-aliases
-e TRAVIS_BRANCH