Configure a mirror for registry-image image_resources

Closes gh-27441
pull/27537/head
Andy Wilkinson 3 years ago
parent 79990a1b9c
commit 70ecaac16c

@ -11,3 +11,6 @@ milestone: "2.4.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))

@ -80,6 +80,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
registry-mirror-host: ((registry-mirror-host))
registry-mirror-username: ((registry-mirror-username))
registry-mirror-password: ((registry-mirror-password))
resource_types: resource_types:
- name: artifactory-resource - name: artifactory-resource
type: registry-image type: registry-image
@ -232,6 +236,7 @@ jobs:
image: ci-image image: ci-image
vars: vars:
ci-image-name: ci-image ci-image-name: ci-image
<<: *registry-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
@ -239,6 +244,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
- task: build-ci-image-jdk16 - task: build-ci-image-jdk16
privileged: true privileged: true
file: git-repo/ci/tasks/build-ci-image.yml file: git-repo/ci/tasks/build-ci-image.yml
@ -246,6 +252,7 @@ jobs:
image: ci-image-jdk16 image: ci-image-jdk16
vars: vars:
ci-image-name: ci-image-jdk16 ci-image-name: ci-image-jdk16
<<: *registry-mirror-vars
- in_parallel: - in_parallel:
- put: ci-image - put: ci-image
params: params:
@ -540,6 +547,8 @@ jobs:
RELEASE_TYPE: M RELEASE_TYPE: M
GITHUB_USERNAME: ((github-username)) GITHUB_USERNAME: ((github-username))
GITHUB_TOKEN: ((github-ci-release-token)) GITHUB_TOKEN: ((github-ci-release-token))
vars:
<<: *registry-mirror-vars
- put: github-pre-release - put: github-pre-release
params: params:
name: generated-changelog/tag name: generated-changelog/tag
@ -569,6 +578,8 @@ jobs:
RELEASE_TYPE: RC RELEASE_TYPE: RC
GITHUB_USERNAME: ((github-username)) GITHUB_USERNAME: ((github-username))
GITHUB_TOKEN: ((github-ci-release-token)) GITHUB_TOKEN: ((github-ci-release-token))
vars:
<<: *registry-mirror-vars
- put: github-pre-release - put: github-pre-release
params: params:
name: generated-changelog/tag name: generated-changelog/tag
@ -626,6 +637,8 @@ jobs:
RELEASE_TYPE: RELEASE RELEASE_TYPE: RELEASE
GITHUB_USERNAME: ((github-username)) GITHUB_USERNAME: ((github-username))
GITHUB_TOKEN: ((github-ci-release-token)) GITHUB_TOKEN: ((github-ci-release-token))
vars:
<<: *registry-mirror-vars
- put: github-release - put: github-release
params: params:
name: generated-changelog/tag name: generated-changelog/tag

@ -4,6 +4,10 @@ image_resource:
type: registry-image type: registry-image
source: source:
repository: vito/oci-build-task repository: vito/oci-build-task
registry_mirror:
host: ((registry-mirror-host))
username: ((registry-mirror-username))
password: ((registry-mirror-password))
inputs: inputs:
- name: ci-images-git-repo - name: ci-images-git-repo
outputs: outputs:

@ -5,6 +5,10 @@ image_resource:
source: source:
repository: springio/github-changelog-generator repository: springio/github-changelog-generator
tag: '0.0.6' tag: '0.0.6'
registry_mirror:
host: ((registry-mirror-host))
username: ((registry-mirror-username))
password: ((registry-mirror-password))
inputs: inputs:
- name: git-repo - name: git-repo
- name: artifactory-repo - name: artifactory-repo

Loading…
Cancel
Save