From 6682f811708afdb9fcba603a7bc62467a37318eb Mon Sep 17 00:00:00 2001 From: Adam Ruka Date: Wed, 19 Aug 2020 11:04:44 -0700 Subject: [PATCH] chore: log in to DockerHub during the main build Similarly like we added for the PR build in #9809. --- buildspec.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildspec.yaml b/buildspec.yaml index 95fd2f0194b85..8196752082e93 100644 --- a/buildspec.yaml +++ b/buildspec.yaml @@ -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 @@ -29,4 +31,4 @@ reports: jest-tests: files: - "**/junit.xml" - file-format: JunitXml \ No newline at end of file + file-format: JunitXml