mirror of
https://gitee.com/dcren/initializr.git
synced 2025-05-05 13:18:02 +08:00
64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
![]() |
resource_types:
|
||
|
- name: artifactory-resource
|
||
|
type: docker-image
|
||
|
source:
|
||
|
repository: springio/artifactory-resource
|
||
|
tag: 0.0.4
|
||
|
resources:
|
||
|
- name: git-repo
|
||
|
type: git
|
||
|
source:
|
||
|
uri: ((github-repo))
|
||
|
branch: ((branch))
|
||
|
ignore_paths: ["ci/images/*"]
|
||
|
- name: ci-images-git-repo
|
||
|
type: git
|
||
|
source:
|
||
|
uri: ((github-repo)
|
||
|
branch: ((branch))
|
||
|
paths: ["ci/images/*"]
|
||
|
- name: initializr-ci-image
|
||
|
type: docker-image
|
||
|
source:
|
||
|
repository: springci/initializr-ci-image
|
||
|
username: ((docker-hub-username))
|
||
|
password: ((docker-hub-password))
|
||
|
tag: ((branch))
|
||
|
- name: artifactory-repo
|
||
|
type: artifactory-resource
|
||
|
source:
|
||
|
uri: ((artifactory-server))
|
||
|
username: ((artifactory-username))
|
||
|
password: ((artifactory-password))
|
||
|
build_name: ((build-name))
|
||
|
jobs:
|
||
|
- name: build-initializr-ci-image
|
||
|
plan:
|
||
|
- get: ci-images-git-repo
|
||
|
trigger: true
|
||
|
- put: initializr-ci-image
|
||
|
params:
|
||
|
build: ci-images-git-repo/ci/images/initializr-ci-image
|
||
|
- name: build
|
||
|
serial: true
|
||
|
plan:
|
||
|
- get: git-repo
|
||
|
- get: initializr-ci-image
|
||
|
- task: build-project
|
||
|
image: initializr-ci-image
|
||
|
file: git-repo/ci/tasks/build-project.yml
|
||
|
- put: artifactory-repo
|
||
|
params: &artifactory-params
|
||
|
repo: libs-snapshot-local
|
||
|
folder: distribution-repository
|
||
|
build_uri: "https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}"
|
||
|
build_number: "${BUILD_PIPELINE_NAME}-${BUILD_JOB_NAME}-${BUILD_NAME}"
|
||
|
disable_checksum_uploads: true
|
||
|
groups:
|
||
|
- name: "Build"
|
||
|
jobs:
|
||
|
- build
|
||
|
- name: "CI Images"
|
||
|
jobs:
|
||
|
- build-initializr-ci-image
|