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:
		
							parent
							
								
									acf5873311
								
							
						
					
					
						commit
						0a4b600a09
					
				|  | @ -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 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue