Align CI image generation mirrors with 2.6.x

Closes gh-25135
pull/30505/head
Andy Wilkinson 3 years ago
parent e84e5174be
commit 429167e71f

@ -68,12 +68,8 @@ start_docker() {
server_args="${server_args}" server_args="${server_args}"
for registry in $3; do if [ -n "$1" ]; then
server_args="${server_args} --insecure-registry ${registry}" server_args="${server_args} --registry-mirror https://$1"
done
if [ -n "$4" ]; then
server_args="${server_args} --registry-mirror $4"
fi fi
try_start() { try_start() {

@ -11,6 +11,3 @@ milestone: "2.5.x"
build-name: "spring-boot" build-name: "spring-boot"
concourse-url: "https://ci.spring.io" concourse-url: "https://ci.spring.io"
task-timeout: 2h00m task-timeout: 2h00m
registry-mirror-host: docker.repo.spring.io
registry-mirror-username: ((artifactory-username))
registry-mirror-password: ((artifactory-password))

@ -39,6 +39,7 @@ anchors:
file: git-repo/ci/tasks/build-project.yml file: git-repo/ci/tasks/build-project.yml
params: params:
BRANCH: ((branch)) BRANCH: ((branch))
DOCKER_HUB_MIRROR: ((docker-hub-mirror))
<<: *gradle-enterprise-task-params <<: *gradle-enterprise-task-params
<<: *docker-hub-task-params <<: *docker-hub-task-params
artifactory-repo-put-params: &artifactory-repo-put-params artifactory-repo-put-params: &artifactory-repo-put-params
@ -80,10 +81,10 @@ anchors:
gradle-publish-params: &gradle-publish-params gradle-publish-params: &gradle-publish-params
GRADLE_PUBLISH_KEY: ((gradle-publish-key)) GRADLE_PUBLISH_KEY: ((gradle-publish-key))
GRADLE_PUBLISH_SECRET: ((gradle-publish-secret)) GRADLE_PUBLISH_SECRET: ((gradle-publish-secret))
registry-mirror-vars: &registry-mirror-vars docker-hub-mirror-vars: &docker-hub-mirror-vars
registry-mirror-host: ((registry-mirror-host)) docker-hub-mirror: ((docker-hub-mirror))
registry-mirror-username: ((registry-mirror-username)) docker-hub-mirror-username: ((docker-hub-mirror-username))
registry-mirror-password: ((registry-mirror-password)) docker-hub-mirror-password: ((docker-hub-mirror-password))
resource_types: resource_types:
- name: artifactory-resource - name: artifactory-resource
type: registry-image type: registry-image
@ -241,7 +242,7 @@ jobs:
image: ci-image image: ci-image
vars: vars:
ci-image-name: ci-image ci-image-name: ci-image
<<: *registry-mirror-vars <<: *docker-hub-mirror-vars
- task: build-ci-image-jdk11 - task: build-ci-image-jdk11
privileged: true privileged: true
file: git-repo/ci/tasks/build-ci-image.yml file: git-repo/ci/tasks/build-ci-image.yml
@ -249,7 +250,7 @@ jobs:
image: ci-image-jdk11 image: ci-image-jdk11
vars: vars:
ci-image-name: ci-image-jdk11 ci-image-name: ci-image-jdk11
<<: *registry-mirror-vars <<: *docker-hub-mirror-vars
- task: build-ci-image-jdk17 - task: build-ci-image-jdk17
privileged: true privileged: true
file: git-repo/ci/tasks/build-ci-image.yml file: git-repo/ci/tasks/build-ci-image.yml
@ -257,7 +258,7 @@ jobs:
image: ci-image-jdk17 image: ci-image-jdk17
vars: vars:
ci-image-name: ci-image-jdk17 ci-image-name: ci-image-jdk17
<<: *registry-mirror-vars <<: *docker-hub-mirror-vars
- in_parallel: - in_parallel:
- put: ci-image - put: ci-image
params: params:
@ -553,7 +554,7 @@ jobs:
GITHUB_USERNAME: ((github-username)) GITHUB_USERNAME: ((github-username))
GITHUB_TOKEN: ((github-ci-release-token)) GITHUB_TOKEN: ((github-ci-release-token))
vars: vars:
<<: *registry-mirror-vars <<: *docker-hub-mirror-vars
- put: github-pre-release - put: github-pre-release
params: params:
name: generated-changelog/tag name: generated-changelog/tag
@ -584,7 +585,7 @@ jobs:
GITHUB_USERNAME: ((github-username)) GITHUB_USERNAME: ((github-username))
GITHUB_TOKEN: ((github-ci-release-token)) GITHUB_TOKEN: ((github-ci-release-token))
vars: vars:
<<: *registry-mirror-vars <<: *docker-hub-mirror-vars
- put: github-pre-release - put: github-pre-release
params: params:
name: generated-changelog/tag name: generated-changelog/tag
@ -645,7 +646,7 @@ jobs:
GITHUB_USERNAME: ((github-username)) GITHUB_USERNAME: ((github-username))
GITHUB_TOKEN: ((github-ci-release-token)) GITHUB_TOKEN: ((github-ci-release-token))
vars: vars:
<<: *registry-mirror-vars <<: *docker-hub-mirror-vars
- put: github-release - put: github-release
params: params:
name: generated-changelog/tag name: generated-changelog/tag

@ -6,9 +6,9 @@ image_resource:
repository: concourse/oci-build-task repository: concourse/oci-build-task
tag: 0.9.1 tag: 0.9.1
registry_mirror: registry_mirror:
host: ((registry-mirror-host)) host: ((docker-hub-mirror))
username: ((registry-mirror-username)) username: ((docker-hub-mirror-username))
password: ((registry-mirror-password)) password: ((docker-hub-mirror-password))
inputs: inputs:
- name: ci-images-git-repo - name: ci-images-git-repo
outputs: outputs:
@ -18,6 +18,7 @@ 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: ((docker-hub-mirror))
DOCKER_HUB_AUTH: ((docker-hub-auth)) DOCKER_HUB_AUTH: ((docker-hub-auth))
run: run:
path: /bin/sh path: /bin/sh

@ -15,11 +15,12 @@ params:
GRADLE_ENTERPRISE_CACHE_USERNAME: GRADLE_ENTERPRISE_CACHE_USERNAME:
GRADLE_ENTERPRISE_CACHE_PASSWORD: GRADLE_ENTERPRISE_CACHE_PASSWORD:
GRADLE_ENTERPRISE_URL: https://ge.spring.io GRADLE_ENTERPRISE_URL: https://ge.spring.io
DOCKER_HUB_MIRROR:
run: run:
path: bash path: bash
args: args:
- -ec - -ec
- | - |
source /docker-lib.sh source /docker-lib.sh
start_docker start_docker $DOCKER_HUB_MIRROR
${PWD}/git-repo/ci/scripts/build-project.sh ${PWD}/git-repo/ci/scripts/build-project.sh

@ -6,9 +6,9 @@ image_resource:
repository: springio/github-changelog-generator repository: springio/github-changelog-generator
tag: '0.0.7' tag: '0.0.7'
registry_mirror: registry_mirror:
host: ((registry-mirror-host)) host: ((docker-hub-mirror))
username: ((registry-mirror-username)) username: ((docker-hub-mirror-username))
password: ((registry-mirror-password)) password: ((docker-hub-mirror-password))
inputs: inputs:
- name: git-repo - name: git-repo
- name: artifactory-repo - name: artifactory-repo

Loading…
Cancel
Save