mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Use local docker mirror for test containers
See gh-24343
This commit is contained in:
parent
10269365c2
commit
902dd0baf5
@ -68,12 +68,8 @@ start_docker() {
|
||||
|
||||
server_args="${server_args}"
|
||||
|
||||
for registry in $3; do
|
||||
server_args="${server_args} --insecure-registry ${registry}"
|
||||
done
|
||||
|
||||
if [ -n "$4" ]; then
|
||||
server_args="${server_args} --registry-mirror $4"
|
||||
if [ -n "$1" ]; then
|
||||
server_args="${server_args} --registry-mirror https://$1"
|
||||
fi
|
||||
|
||||
try_start() {
|
||||
|
@ -39,6 +39,7 @@ anchors:
|
||||
file: git-repo/ci/tasks/build-project.yml
|
||||
params:
|
||||
BRANCH: ((branch))
|
||||
DOCKER_HUB_MIRROR: ((docker-hub-mirror))
|
||||
<<: *gradle-enterprise-task-params
|
||||
<<: *docker-hub-task-params
|
||||
run-system-tests-task-params: &run-system-tests-task-params
|
||||
|
@ -15,11 +15,12 @@ params:
|
||||
GRADLE_ENTERPRISE_CACHE_USERNAME:
|
||||
GRADLE_ENTERPRISE_CACHE_PASSWORD:
|
||||
GRADLE_ENTERPRISE_URL: https://ge.spring.io
|
||||
DOCKER_HUB_MIRROR:
|
||||
run:
|
||||
path: bash
|
||||
args:
|
||||
- -ec
|
||||
- |
|
||||
source /docker-lib.sh
|
||||
start_docker
|
||||
start_docker $DOCKER_HUB_MIRROR
|
||||
${PWD}/git-repo/ci/scripts/build-project.sh
|
||||
|
Loading…
Reference in New Issue
Block a user