From 1f8a6ddaaf11bf509253051cd97b18c63dd34a2c Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 10 Dec 2020 21:00:58 -0800 Subject: [PATCH] Write docker/config.json for CI Image generation See gh-24461 --- ci/tasks/build-ci-image.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ci/tasks/build-ci-image.yml b/ci/tasks/build-ci-image.yml index b1bcff6eb4..5b85abd979 100644 --- a/ci/tasks/build-ci-image.yml +++ b/ci/tasks/build-ci-image.yml @@ -13,6 +13,15 @@ caches: params: CONTEXT: ci-images-git-repo/ci/images DOCKERFILE: ci-images-git-repo/ci/images/((ci-image-name))/Dockerfile - REGISTRY_MIRRORS: ((dockerhub-registry-mirror)) + REGISTRY_MIRRORS: ((docker-hub-mirror)) + DOCKER_HUB_AUTH: ((docker-hub-auth)) run: - path: build + path: /bin/sh + args: + - "-c" + - | + mkdir -p /root/.docker + cat > /root/.docker/config.json <