Skip to content

Commit 0cf2ce0

Browse files
committed
Use Concourse Release Script as Docker image in CI
Instead of embeddeding the Concourse Release Scripts application as a JAR in the CI image, this commit is now using the published Docker image for this.
1 parent 2b6dd8f commit 0cf2ce0

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

ci/images/setup.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ rm -rf /var/lib/apt/lists/*
1515

1616
curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.4/concourse-java.sh > /opt/concourse-java.sh
1717

18-
curl --output /opt/concourse-release-scripts.jar https://repo.spring.io/release/io/spring/concourse/releasescripts/concourse-release-scripts/0.3.3/concourse-release-scripts-0.3.3.jar
19-
2018
###########################################################
2119
# JAVA
2220
###########################################################

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: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
---
22
platform: linux
3+
image_resource:
4+
type: registry-image
5+
source:
6+
repository: springio/concourse-release-scripts
7+
tag: '0.3.4-SNAPSHOT'
38
inputs:
4-
- name: git-repo
5-
- name: artifactory-repo
9+
- name: git-repo
10+
- name: artifactory-repo
611
outputs:
7-
- name: version
12+
- name: version
813
params:
914
RELEASE_TYPE:
1015
ARTIFACTORY_SERVER:
1116
ARTIFACTORY_USERNAME:
1217
ARTIFACTORY_PASSWORD:
13-
SONATYPE_USER:
14-
SONATYPE_PASSWORD:
15-
SONATYPE_URL:
16-
SONATYPE_STAGING_PROFILE_ID:
1718
run:
1819
path: git-repo/ci/scripts/promote-version.sh

0 commit comments

Comments
 (0)