Adapt to CI
* now using springio/concourse-release-scripts
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
ARG base_image=ubuntu:bionic
|
||||
FROM ${base_image}
|
||||
|
||||
ADD https://repo.spring.io/libs-release/io/spring/concourse/releasescripts/concourse-release-scripts/0.3.2/concourse-release-scripts-0.3.2.jar /opt/concourse-release-scripts.jar
|
||||
|
||||
RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||
git gnupg \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@@ -34,6 +34,9 @@ cd source
|
||||
VERSION=$(./mvnw --quiet help:evaluate -DforceStdout -Dexpression=project.version)
|
||||
|
||||
git add pom.xml
|
||||
git add spring-cloud-bindings/pom.xml
|
||||
git add spring-cloud-bindings-tests/pom.xml
|
||||
|
||||
git checkout -- .
|
||||
|
||||
git \
|
||||
|
||||
@@ -30,5 +30,4 @@ EOF
|
||||
REPOSITORY="${PWD}"/repository
|
||||
|
||||
cd source
|
||||
|
||||
./mvnw deploy -Dmaven.test.skip=true -DaltDeploymentRepository="local::default::file://${REPOSITORY}"
|
||||
|
||||
@@ -4,6 +4,6 @@ set -euo pipefail
|
||||
|
||||
export BUILD_INFO_LOCATION=$(pwd)/repository/build-info.json
|
||||
|
||||
java -jar /opt/concourse-release-scripts.jar publishToCentral 'RELEASE' "$BUILD_INFO_LOCATION" repository
|
||||
java -jar /concourse-release-scripts.jar publishToCentral 'RELEASE' "$BUILD_INFO_LOCATION" repository
|
||||
|
||||
echo "Sync complete"
|
||||
@@ -10,6 +10,9 @@ cd source
|
||||
VERSION=$(./mvnw --quiet help:evaluate -DforceStdout -Dexpression=project.version)
|
||||
|
||||
git add pom.xml
|
||||
git add spring-cloud-bindings/pom.xml
|
||||
git add spring-cloud-bindings-tests/pom.xml
|
||||
|
||||
git checkout -- .
|
||||
|
||||
git \
|
||||
|
||||
Reference in New Issue
Block a user