Skip to content

Commit

Permalink
chore: log in to DockerHub during the main build (#9839)
Browse files Browse the repository at this point in the history
Similarly like we added for the PR build in #9809.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
skinny85 committed Aug 19, 2020
1 parent 7f8ed82 commit 23f05a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion buildspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ phases:
# Start docker daemon inside the container
- nohup /usr/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://127.0.0.1:2375 --storage-driver=overlay2&
- timeout 15 sh -c "until docker info; do echo .; sleep 1; done"
# login to DockerHub to avoid throttling
- docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}

# Install yarn if it wasn't already present in the image
- yarn --version || npm -g install yarn
Expand All @@ -29,4 +31,4 @@ reports:
jest-tests:
files:
- "**/junit.xml"
file-format: JunitXml
file-format: JunitXml

0 comments on commit 23f05a3

Please sign in to comment.