Skip to content

Commit

Permalink
Windows buildkite often has first-time trouble with DNS lookups (ddev…
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay authored Jun 1, 2021
1 parent 772e26d commit 0f01609
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .buildkite/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ if ! docker ps >/dev/null 2>&1 ; then
exit 1
fi

# Try to get important names cached; try twice
for hostname in github.com raw.githubusercontent.com github-releases.githubusercontent.com registry-1.docker.io auth.docker.io production.cloudflare.docker.com; do
ping -c 1 $hostname 2>/dev/null || ping -c 1 $hostname 2>/dev/null || true
done

if [ ! -z "${DOCKERHUB_PULL_USERNAME:-}" ]; then
set +x
echo "${DOCKERHUB_PULL_PASSWORD:-}" | docker login --username "${DOCKERHUB_PULL_USERNAME}" --password-stdin
Expand Down

0 comments on commit 0f01609

Please sign in to comment.