mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
Write docker/config.json for CI Image generation
See gh-24461
This commit is contained in:
parent
ff124c0902
commit
1f8a6ddaaf
@ -13,6 +13,15 @@ caches:
|
|||||||
params:
|
params:
|
||||||
CONTEXT: ci-images-git-repo/ci/images
|
CONTEXT: ci-images-git-repo/ci/images
|
||||||
DOCKERFILE: ci-images-git-repo/ci/images/((ci-image-name))/Dockerfile
|
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:
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user