Skip to content

Commit

Permalink
Write docker/config.json for CI Image generation
Browse files Browse the repository at this point in the history
  • Loading branch information
philwebb committed Dec 11, 2020
1 parent ff124c0 commit 1f8a6dd
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions ci/tasks/build-ci-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF
{ "auths": { "https://index.docker.io/v1/": { "auth": "$DOCKER_HUB_AUTH" }}}
EOF
build

0 comments on commit 1f8a6dd

Please sign in to comment.