mirror of
https://gitee.com/dcren/initializr.git
synced 2026-01-09 18:04:49 +08:00
Use docker image for concourse-release-scripts
Closes gh-1439
This commit is contained in:
@@ -14,8 +14,6 @@ rm -rf /var/lib/apt/lists/*
|
|||||||
|
|
||||||
curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.4/concourse-java.sh > /opt/concourse-java.sh
|
curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.4/concourse-java.sh > /opt/concourse-java.sh
|
||||||
|
|
||||||
curl --output /opt/concourse-release-scripts.jar https://repo.spring.io/release/io/spring/concourse/releasescripts/concourse-release-scripts/0.3.2/concourse-release-scripts-0.3.2.jar
|
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
# JAVA
|
# JAVA
|
||||||
###########################################################
|
###########################################################
|
||||||
|
|||||||
@@ -239,10 +239,10 @@ jobs:
|
|||||||
download_artifacts: true
|
download_artifacts: true
|
||||||
save_build_info: true
|
save_build_info: true
|
||||||
- task: promote
|
- task: promote
|
||||||
image: ci-image
|
|
||||||
file: git-repo/ci/tasks/promote.yml
|
file: git-repo/ci/tasks/promote.yml
|
||||||
params:
|
params:
|
||||||
RELEASE_TYPE: RELEASE
|
RELEASE_TYPE: RELEASE
|
||||||
|
<<: *registry-image-resource-source
|
||||||
<<: *artifactory-task-params
|
<<: *artifactory-task-params
|
||||||
<<: *sonatype-task-params
|
<<: *sonatype-task-params
|
||||||
- name: create-github-release
|
- name: create-github-release
|
||||||
|
|||||||
@@ -1,16 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source $(dirname $0)/common.sh
|
|
||||||
CONFIG_DIR=git-repo/ci/config
|
CONFIG_DIR=git-repo/ci/config
|
||||||
|
|
||||||
version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' )
|
version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' )
|
||||||
export BUILD_INFO_LOCATION=$(pwd)/artifactory-repo/build-info.json
|
export BUILD_INFO_LOCATION=$(pwd)/artifactory-repo/build-info.json
|
||||||
|
|
||||||
java -jar /opt/concourse-release-scripts.jar \
|
java -jar /concourse-release-scripts.jar \
|
||||||
--spring.config.location=${CONFIG_DIR}/release-scripts.yml \
|
--spring.config.location=${CONFIG_DIR}/release-scripts.yml \
|
||||||
publishToCentral $RELEASE_TYPE $BUILD_INFO_LOCATION artifactory-repo || { exit 1; }
|
publishToCentral $RELEASE_TYPE $BUILD_INFO_LOCATION artifactory-repo || { exit 1; }
|
||||||
|
|
||||||
java -jar /opt/concourse-release-scripts.jar \
|
java -jar /concourse-release-scripts.jar \
|
||||||
--spring.config.location=${CONFIG_DIR}/release-scripts.yml \
|
--spring.config.location=${CONFIG_DIR}/release-scripts.yml \
|
||||||
promote $RELEASE_TYPE $BUILD_INFO_LOCATION || { exit 1; }
|
promote $RELEASE_TYPE $BUILD_INFO_LOCATION || { exit 1; }
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
---
|
---
|
||||||
platform: linux
|
platform: linux
|
||||||
|
image_resource:
|
||||||
|
type: registry-image
|
||||||
|
source:
|
||||||
|
repository: springio/concourse-release-scripts
|
||||||
|
tag: '0.3.4'
|
||||||
|
username: ((docker-hub-username))
|
||||||
|
password: ((docker-hub-password))
|
||||||
inputs:
|
inputs:
|
||||||
- name: git-repo
|
- name: git-repo
|
||||||
- name: artifactory-repo
|
- name: artifactory-repo
|
||||||
|
|||||||
Reference in New Issue
Block a user