Skip to content

Commit c206866

Browse files
committed
Use concourse-release-script docker image in CI
1 parent ca01ee0 commit c206866

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

ci/pipeline.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ jobs:
277277
download_artifacts: false
278278
save_build_info: true
279279
- task: promote
280-
image: ci-image
281280
file: git-repo/ci/tasks/promote-version.yml
282281
params:
283282
RELEASE_TYPE: M
@@ -322,7 +321,6 @@ jobs:
322321
download_artifacts: false
323322
save_build_info: true
324323
- task: promote
325-
image: ci-image
326324
file: git-repo/ci/tasks/promote-version.yml
327325
params:
328326
RELEASE_TYPE: RC
@@ -367,7 +365,6 @@ jobs:
367365
download_artifacts: true
368366
save_build_info: true
369367
- task: promote
370-
image: ci-image
371368
file: git-repo/ci/tasks/promote-version.yml
372369
params:
373370
RELEASE_TYPE: RELEASE

ci/scripts/promote-version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ CONFIG_DIR=git-repo/ci/config
66
version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' )
77
export BUILD_INFO_LOCATION=$(pwd)/artifactory-repo/build-info.json
88

9-
java -jar /opt/concourse-release-scripts.jar \
9+
java -jar /concourse-release-scripts.jar \
1010
--spring.config.location=${CONFIG_DIR}/release-scripts.yml \
1111
publishToCentral $RELEASE_TYPE $BUILD_INFO_LOCATION artifactory-repo || { exit 1; }
1212

13-
java -jar /opt/concourse-release-scripts.jar \
13+
java -jar /concourse-release-scripts.jar \
1414
--spring.config.location=${CONFIG_DIR}/release-scripts.yml \
1515
promote $RELEASE_TYPE $BUILD_INFO_LOCATION || { exit 1; }
1616

ci/tasks/promote-version.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
---
22
platform: linux
3+
image_resource:
4+
type: registry-image
5+
source:
6+
repository: springio/concourse-release-scripts
7+
tag: '0.3.4'
8+
username: ((docker-hub-username))
9+
password: ((docker-hub-password))
310
inputs:
411
- name: git-repo
512
- name: artifactory-repo

0 commit comments

Comments
 (0)