Rely on Docker Hub for fetching CI images

This commit is contained in:
Brian Clozel
2023-02-02 22:12:10 +01:00
parent 71cdc06911
commit 7fdd33ea39
3 changed files with 15 additions and 18 deletions

View File

@@ -32,7 +32,6 @@ anchors:
registry-image-resource-source: &registry-image-resource-source registry-image-resource-source: &registry-image-resource-source
username: ((docker-hub-username)) username: ((docker-hub-username))
password: ((docker-hub-password)) password: ((docker-hub-password))
tag: ((milestone))
slack-fail-params: &slack-fail-params slack-fail-params: &slack-fail-params
text: ":concourse-failed: <!here> <https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|failure: ${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME}>" text: ":concourse-failed: <!here> <https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|failure: ${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME}>"
silent: true silent: true
@@ -48,36 +47,37 @@ anchors:
SONATYPE_PASSWORD: ((sonatype-password)) SONATYPE_PASSWORD: ((sonatype-password))
SONATYPE_URL: ((sonatype-url)) SONATYPE_URL: ((sonatype-url))
SONATYPE_STAGING_PROFILE_ID: ((sonatype-staging-profile-id)) SONATYPE_STAGING_PROFILE_ID: ((sonatype-staging-profile-id))
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
source: source:
repository: springio/artifactory-resource repository: springio/artifactory-resource
tag: 0.0.14 tag: 0.0.17
<<: *registry-image-resource-source
- name: pull-request - name: pull-request
type: registry-image type: registry-image
source: source:
repository: teliaoss/github-pr-resource repository: teliaoss/github-pr-resource
tag: v0.23.0 tag: v0.23.0
<<: *registry-image-resource-source
- name: github-release - name: github-release
type: registry-image type: registry-image
source: source:
repository: concourse/github-release-resource repository: concourse/github-release-resource
tag: 1.5.5 tag: 1.5.5
<<: *registry-image-resource-source
- name: github-status-resource - name: github-status-resource
type: registry-image type: registry-image
source: source:
repository: dpb587/github-status-resource repository: dpb587/github-status-resource
tag: master tag: master
<<: *registry-image-resource-source
- name: slack-notification - name: slack-notification
type: registry-image type: registry-image
source: source:
repository: cfcommunity/slack-notification-resource repository: cfcommunity/slack-notification-resource
tag: latest tag: latest
<<: *registry-image-resource-source
resources: resources:
- name: git-repo - name: git-repo
type: git type: git
@@ -121,6 +121,7 @@ resources:
source: source:
<<: *registry-image-resource-source <<: *registry-image-resource-source
repository: ((docker-hub-organization))/initializr-ci repository: ((docker-hub-organization))/initializr-ci
tag: ((milestone))
- name: artifactory-repo - name: artifactory-repo
type: artifactory-resource type: artifactory-resource
icon: package-variant icon: package-variant
@@ -160,7 +161,7 @@ jobs:
image: ci-image image: ci-image
vars: vars:
ci-image-name: ci-image ci-image-name: ci-image
<<: *registry-mirror-vars <<: *registry-image-resource-source
- in_parallel: - in_parallel:
- put: ci-image - put: ci-image
params: params:
@@ -303,7 +304,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 <<: *registry-image-resource-source
- put: github-release - put: github-release
params: params:
name: generated-changelog/tag name: generated-changelog/tag

View File

@@ -4,11 +4,9 @@ image_resource:
type: registry-image type: registry-image
source: source:
repository: concourse/oci-build-task repository: concourse/oci-build-task
tag: 0.9.1 tag: 0.10.0
registry_mirror: username: ((docker-hub-username))
host: ((registry-mirror-host)) password: ((docker-hub-password))
username: ((registry-mirror-username))
password: ((registry-mirror-password))
inputs: inputs:
- name: ci-images-git-repo - name: ci-images-git-repo
outputs: outputs:

View File

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