From cb56035bccde6a55362d863c6609fe3a38979c9a Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 18 Apr 2023 10:04:20 -0700 Subject: [PATCH] Setup docker config.json on CI when building project --- ci/pipeline.yml | 1 + ci/tasks/build-project.yml | 14 +++++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ci/pipeline.yml b/ci/pipeline.yml index b45dc9057503..4366bd1a73a0 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -20,6 +20,7 @@ anchors: DOCKER_HUB_MIRROR: ((docker-hub-mirror)) DOCKER_HUB_USERNAME: ((docker-hub-username)) DOCKER_HUB_PASSWORD: ((docker-hub-password)) + DOCKER_HUB_AUTH: ((docker-hub-auth)) github-task-params: &github-task-params GITHUB_REPO: spring-boot GITHUB_ORGANIZATION: spring-projects diff --git a/ci/tasks/build-project.yml b/ci/tasks/build-project.yml index c3c9775e8d8c..db3003af6e0c 100644 --- a/ci/tasks/build-project.yml +++ b/ci/tasks/build-project.yml @@ -20,8 +20,12 @@ params: run: path: bash args: - - -ec - - | - source /docker-lib.sh - start_docker $DOCKER_HUB_MIRROR - ${PWD}/git-repo/ci/scripts/build-project.sh + - "-ec" + - | + mkdir -p /root/.docker + cat > /root/.docker/config.json <