Skip to content

Commit

Permalink
Rename CI base image app-broker-ci
Browse files Browse the repository at this point in the history
Disambiguate and decouple from other users
  • Loading branch information
spikymonkey committed May 12, 2021
1 parent 93eabf3 commit 6abaacd
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 34 deletions.
File renamed without changes.
34 changes: 17 additions & 17 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ aliases:
text: <!here> Build <${ATC_EXTERNAL_URL}/builds/$BUILD_ID|$BUILD_NAME> of job $BUILD_JOB_NAME in the $BUILD_PIPELINE_NAME pipeline has failed!

jobs:
- name: build-release-ci-images
- name: build-ci-images
plan:
- get: ci-images-git-repo
trigger: true
- put: release-ci-image
- put: app-broker-ci-image
params:
build: ci-images-git-repo/ci/images/release-ci-image
build: ci-images-git-repo/ci/images/app-broker-ci
get_params:
skip_download: "true"

Expand All @@ -36,7 +36,7 @@ jobs:
timeout: 1h30m
file: git-repo/ci/tasks/build-project.yml
vars:
release-image-tag: ((release-image-tag))
ci-image-tag: ((ci-image-tag))
- put: artifactory-repo
params: &artifactory-params
repo: libs-snapshot-local
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
- task: acceptance-tests
file: git-repo/ci/tasks/acceptance-tests.yml
vars:
release-image-tag: ((release-image-tag))
ci-image-tag: ((ci-image-tag))
on_success:
in_parallel:
- *slack-success-notification
Expand All @@ -87,7 +87,7 @@ jobs:
file: git-repo/ci/tasks/stage.yml
vars:
release-type: M
release-image-tag: ((release-image-tag))
ci-image-tag: ((ci-image-tag))
- put: artifactory-repo
params:
<<: *artifactory-params
Expand All @@ -106,7 +106,7 @@ jobs:
file: git-repo/ci/tasks/stage.yml
vars:
release-type: RC
release-image-tag: ((release-image-tag))
ci-image-tag: ((ci-image-tag))
- put: artifactory-repo
params:
<<: *artifactory-params
Expand All @@ -125,7 +125,7 @@ jobs:
file: git-repo/ci/tasks/stage.yml
vars:
release-type: RELEASE
release-image-tag: ((release-image-tag))
ci-image-tag: ((ci-image-tag))
- put: artifactory-repo
params:
<<: *artifactory-params
Expand All @@ -148,7 +148,7 @@ jobs:
file: git-repo/ci/tasks/promote.yml
vars:
release-type: M
release-image-tag: ((release-image-tag))
ci-image-tag: ((ci-image-tag))

- name: promote-rc
serial: true
Expand All @@ -165,7 +165,7 @@ jobs:
file: git-repo/ci/tasks/promote.yml
vars:
release-type: RC
release-image-tag: ((release-image-tag))
ci-image-tag: ((ci-image-tag))

- name: promote-release
serial: true
Expand All @@ -182,7 +182,7 @@ jobs:
file: git-repo/ci/tasks/promote.yml
vars:
release-type: RELEASE
release-image-tag: ((release-image-tag))
ci-image-tag: ((ci-image-tag))

- name: distribute-release
serial: true
Expand All @@ -198,7 +198,7 @@ jobs:
- task: distribute
file: git-repo/ci/tasks/distribute.yml
vars:
release-image-tag: ((release-image-tag))
ci-image-tag: ((ci-image-tag))
bintray-distribution-repo: ((bintray-distribution-repo))
bintray-package: ((bintray-package))
bintray-repo: ((bintray-repo))
Expand All @@ -218,7 +218,7 @@ jobs:
- task: sync-to-maven-central
file: git-repo/ci/tasks/sync-to-maven-central.yml
vars:
release-image-tag: ((release-image-tag))
ci-image-tag: ((ci-image-tag))
bintray-package: ((bintray-package))
bintray-repo: ((bintray-repo))
bintray-subject: ((bintray-subject))
Expand Down Expand Up @@ -267,13 +267,13 @@ resources:
branch: ((branch))
paths: ["ci/images/*"]

- name: release-ci-image
- name: app-broker-ci-image
type: docker-image
source:
repository: ((corporate-harbor-registry))/((dockerhub-organization))/release-ci-image
repository: ((corporate-harbor-registry))/((dockerhub-organization))/app-broker-ci
username: ((corporate-harbor-robot-account.username))
password: ((corporate-harbor-robot-account.password))
tag: ((release-image-tag))
tag: ((ci-image-tag))

- name: artifactory-repo
type: artifactory-resource
Expand Down Expand Up @@ -317,4 +317,4 @@ groups:
- sync-to-maven-central
- name: "ci-images"
jobs:
- build-release-ci-images
- build-ci-images
4 changes: 2 additions & 2 deletions ci/pr-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
input_mapping:
git-repo: pull-request
vars:
release-image-tag: ((release-image-tag))
ci-image-tag: ((ci-image-tag))

- name: run-acceptance-tests
serial: true
Expand All @@ -45,7 +45,7 @@ jobs:
input_mapping:
git-repo: pull-request
vars:
release-image-tag: ((release-image-tag))
ci-image-tag: ((ci-image-tag))
on_success:
in_parallel:
- *slack-success-notification
Expand Down
4 changes: 2 additions & 2 deletions ci/tasks/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ platform: linux
image_resource:
type: registry-image
source:
repository: ((corporate-harbor-registry))/((dockerhub-organization))/release-ci-image
tag: ((release-image-tag))
repository: ((corporate-harbor-registry))/((dockerhub-organization))/app-broker-ci
tag: ((ci-image-tag))
inputs:
- name: git-repo
- name: toolsmith-env
Expand Down
4 changes: 2 additions & 2 deletions ci/tasks/build-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ platform: linux
image_resource:
type: registry-image
source:
repository: ((corporate-harbor-registry))/((dockerhub-organization))/release-ci-image
tag: ((release-image-tag))
repository: ((corporate-harbor-registry))/((dockerhub-organization))/app-broker-ci
tag: ((ci-image-tag))
inputs:
- name: git-repo
outputs:
Expand Down
4 changes: 2 additions & 2 deletions ci/tasks/distribute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ platform: linux
image_resource:
type: registry-image
source:
repository: ((corporate-harbor-registry))/((dockerhub-organization))/release-ci-image
tag: ((release-image-tag))
repository: ((corporate-harbor-registry))/((dockerhub-organization))/app-broker-ci
tag: ((ci-image-tag))
inputs:
- name: git-repo
- name: artifactory-repo
Expand Down
4 changes: 2 additions & 2 deletions ci/tasks/promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ platform: linux
image_resource:
type: registry-image
source:
repository: ((corporate-harbor-registry))/((dockerhub-organization))/release-ci-image
tag: ((release-image-tag))
repository: ((corporate-harbor-registry))/((dockerhub-organization))/app-broker-ci
tag: ((ci-image-tag))
inputs:
- name: git-repo
- name: artifactory-repo
Expand Down
4 changes: 2 additions & 2 deletions ci/tasks/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ platform: linux
image_resource:
type: registry-image
source:
repository: ((corporate-harbor-registry))/((dockerhub-organization))/release-ci-image
tag: ((release-image-tag))
repository: ((corporate-harbor-registry))/((dockerhub-organization))/app-broker-ci
tag: ((ci-image-tag))
inputs:
- name: git-repo
outputs:
Expand Down
4 changes: 2 additions & 2 deletions ci/tasks/sync-to-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ platform: linux
image_resource:
type: registry-image
source:
repository: ((corporate-harbor-registry))/((dockerhub-organization))/release-ci-image
tag: ((release-image-tag))
repository: ((corporate-harbor-registry))/((dockerhub-organization))/app-broker-ci
tag: ((ci-image-tag))
inputs:
- name: git-repo
- name: artifactory-repo
Expand Down
6 changes: 3 additions & 3 deletions scripts/set-pipelines.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
set -euo pipefail

set_pipeline() {
local pipeline_name pipeline_definition branch release_image_tag
local pipeline_name pipeline_definition branch ci_image_tag
pipeline_name="${1:?pipeline name must be provided}"
pipeline_definition="${2:?pipeline definition file must be provided}"
branch="${3:?branch must be provided}"
release_image_tag="${4:-$branch}"
ci_image_tag="${4:-$branch}"

echo "Setting $pipeline_name pipeline..."
fly --target app-broker set-pipeline \
--pipeline "$pipeline_name" \
--config "$pipeline_definition" \
--load-vars-from config-concourse.yml \
--var "branch=$branch" \
--var "release-image-tag=$release_image_tag"
--var "ci-image-tag=$ci_image_tag"
}

main() {
Expand Down

0 comments on commit 6abaacd

Please sign in to comment.