Skip to content

Commit

Permalink
Move docker login before docker pull. (#5281)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
andygabby committed Feb 11, 2021
1 parent acf5873 commit 0a4b600
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a4b600

Please sign in to comment.