Improve parameterization of the CI pipeline

Closes gh-38394
This commit is contained in:
Andy Wilkinson 2023-11-20 10:36:58 +00:00
parent 19f8e042a6
commit 81ced3ecdb
2 changed files with 20 additions and 18 deletions

View File

@ -1,7 +1,9 @@
github-repo: "https://github.com/spring-projects/spring-boot.git" github-organization-name: "spring-projects"
github-repo-name: "spring-projects/spring-boot" github-repository-name: "spring-boot"
github-repository-uri: "https://github.com/spring-projects/spring-boot.git"
homebrew-tap-repo: "https://github.com/spring-io/homebrew-tap.git" homebrew-tap-repo: "https://github.com/spring-io/homebrew-tap.git"
docker-hub-organization: "springci" docker-hub-organization: "springci"
docker-hub-repository-prefix: "spring-boot"
artifactory-url: "https://repo.spring.io" artifactory-url: "https://repo.spring.io"
branch: "2.7.x" branch: "2.7.x"
milestone: "2.7.x" milestone: "2.7.x"

View File

@ -1,6 +1,6 @@
anchors: anchors:
git-repo-resource-source: &git-repo-resource-source git-repo-resource-source: &git-repo-resource-source
uri: ((github-repo)) uri: ((github-repository-uri))
username: ((github-username)) username: ((github-username))
password: ((github-ci-release-token)) password: ((github-ci-release-token))
branch: ((branch)) branch: ((branch))
@ -22,8 +22,8 @@ anchors:
DOCKER_HUB_PASSWORD: ((docker-hub-password)) DOCKER_HUB_PASSWORD: ((docker-hub-password))
DOCKER_HUB_AUTH: ((docker-hub-auth)) DOCKER_HUB_AUTH: ((docker-hub-auth))
github-task-params: &github-task-params github-task-params: &github-task-params
GITHUB_REPO: spring-boot GITHUB_REPO: ((github-repository-name))
GITHUB_ORGANIZATION: spring-projects GITHUB_ORGANIZATION: ((github-organization-name))
GITHUB_PASSWORD: ((github-ci-release-token)) GITHUB_PASSWORD: ((github-ci-release-token))
GITHUB_USERNAME: ((github-username)) GITHUB_USERNAME: ((github-username))
MILESTONE: ((milestone)) MILESTONE: ((milestone))
@ -143,8 +143,8 @@ resources:
type: github-release type: github-release
icon: briefcase-download-outline icon: briefcase-download-outline
source: source:
owner: spring-projects owner: ((github-organization-name))
repository: spring-boot repository: ((github-repository-name))
access_token: ((github-ci-release-token)) access_token: ((github-ci-release-token))
pre_release: true pre_release: true
release: false release: false
@ -152,15 +152,15 @@ resources:
type: github-release type: github-release
icon: briefcase-download icon: briefcase-download
source: source:
owner: spring-projects owner: ((github-organization-name))
repository: spring-boot repository: ((github-repository-name))
access_token: ((github-ci-release-token)) access_token: ((github-ci-release-token))
pre_release: false pre_release: false
- name: ci-images-git-repo - name: ci-images-git-repo
type: git type: git
icon: github icon: github
source: source:
uri: ((github-repo)) uri: ((github-repository-uri))
branch: ((branch)) branch: ((branch))
paths: ["ci/images/*"] paths: ["ci/images/*"]
- name: ci-image - name: ci-image
@ -168,25 +168,25 @@ resources:
icon: docker icon: docker
source: source:
<<: *ci-registry-image-resource-source <<: *ci-registry-image-resource-source
repository: ((docker-hub-organization))/spring-boot-ci repository: ((docker-hub-organization))/((docker-hub-repository-prefix))-ci
- name: ci-image-jdk11 - name: ci-image-jdk11
type: registry-image type: registry-image
icon: docker icon: docker
source: source:
<<: *ci-registry-image-resource-source <<: *ci-registry-image-resource-source
repository: ((docker-hub-organization))/spring-boot-ci-jdk11 repository: ((docker-hub-organization))/((docker-hub-repository-prefix))-ci-jdk11
- name: ci-image-jdk17 - name: ci-image-jdk17
type: registry-image type: registry-image
icon: docker icon: docker
source: source:
<<: *ci-registry-image-resource-source <<: *ci-registry-image-resource-source
repository: ((docker-hub-organization))/spring-boot-ci-jdk17 repository: ((docker-hub-organization))/((docker-hub-repository-prefix))-ci-jdk17
- name: ci-image-jdk21 - name: ci-image-jdk21
type: registry-image type: registry-image
icon: docker icon: docker
source: source:
<<: *ci-registry-image-resource-source <<: *ci-registry-image-resource-source
repository: ((docker-hub-organization))/spring-boot-ci-jdk21 repository: ((docker-hub-organization))/((docker-hub-repository-prefix))-ci-jdk21
- name: paketo-builder-base-image - name: paketo-builder-base-image
type: registry-image type: registry-image
icon: docker icon: docker
@ -207,7 +207,7 @@ resources:
type: github-status-resource type: github-status-resource
icon: eye-check-outline icon: eye-check-outline
source: source:
repository: ((github-repo-name)) repository: ((github-organization-name))/((github-repository-name))
access_token: ((github-ci-status-token)) access_token: ((github-ci-status-token))
branch: ((branch)) branch: ((branch))
context: build context: build
@ -215,7 +215,7 @@ resources:
type: github-status-resource type: github-status-resource
icon: eye-check-outline icon: eye-check-outline
source: source:
repository: ((github-repo-name)) repository: ((github-organization-name))/((github-repository-name))
access_token: ((github-ci-status-token)) access_token: ((github-ci-status-token))
branch: ((branch)) branch: ((branch))
context: jdk11-build context: jdk11-build
@ -223,7 +223,7 @@ resources:
type: github-status-resource type: github-status-resource
icon: eye-check-outline icon: eye-check-outline
source: source:
repository: ((github-repo-name)) repository: ((github-organization-name))/((github-repository-name))
access_token: ((github-ci-status-token)) access_token: ((github-ci-status-token))
branch: ((branch)) branch: ((branch))
context: jdk17-build context: jdk17-build
@ -231,7 +231,7 @@ resources:
type: github-status-resource type: github-status-resource
icon: eye-check-outline icon: eye-check-outline
source: source:
repository: ((github-repo-name)) repository: ((github-organization-name))/((github-repository-name))
access_token: ((github-ci-status-token)) access_token: ((github-ci-status-token))
branch: ((branch)) branch: ((branch))
context: jdk21-build context: jdk21-build