File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ anchors:
2020 DOCKER_HUB_MIRROR : ((docker-hub-mirror))
2121 DOCKER_HUB_USERNAME : ((docker-hub-username))
2222 DOCKER_HUB_PASSWORD : ((docker-hub-password))
23+ DOCKER_HUB_AUTH : ((docker-hub-auth))
2324 github-task-params : &github-task-params
2425 GITHUB_REPO : spring-boot
2526 GITHUB_ORGANIZATION : spring-projects
Original file line number Diff line number Diff line change @@ -20,8 +20,12 @@ params:
2020run :
2121 path : bash
2222 args :
23- - -ec
24- - |
25- source /docker-lib.sh
26- start_docker $DOCKER_HUB_MIRROR
27- ${PWD}/git-repo/ci/scripts/build-project.sh
23+ - " -ec"
24+ - |
25+ mkdir -p /root/.docker
26+ cat > /root/.docker/config.json <<EOF
27+ { "auths": { "https://index.docker.io/v1/": { "auth": "$DOCKER_HUB_AUTH" }}}
28+ EOF
29+ source /docker-lib.sh
30+ start_docker $DOCKER_HUB_MIRROR
31+ ${PWD}/git-repo/ci/scripts/build-project.sh
You can’t perform that action at this time.
0 commit comments