File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ FROM openjdk:8-jdk-alpine
33ENV VERSION=
44ENV NEXT_VERSION=
55ENV GPG_PASSPHRASE=
6- ENV GIT_USERNAME=
7- ENV GIT_SECRET=
86ARG GIT_EMAIL=
97ARG FULL_NAME=
108
@@ -17,11 +15,12 @@ ENV MAVEN_OPTS="-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
1715
1816VOLUME /gpg
1917VOLUME /maven
18+ VOLUME /ssh
2019
2120COPY maven-release.sh /maven-release.sh
2221
2322# Install Maven, Git and gpg
24- RUN apk add --no-cache curl tar bash git gnupg
23+ RUN apk add --no-cache curl tar bash git gnupg openssh
2524RUN mkdir -p /usr/share/maven && \
2625 curl -fsSL http://apache.osuosl.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | tar -xzC /usr/share/maven --strip-components=1 && \
2726ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ echo "Set private key..."
77cp -vr /gpg ~ /.gnupg
88echo " pinentry-mode loopback" > ~ /.gnupg/gpg.conf
99cp -vpr /maven ~ /.m2
10+ cp -vr /ssh ~ /.ssh
1011
1112echo " Cloning convertapi-java..."
12- git clone https://${GIT_USERNAME} :${GIT_SECRET} @github.com/ConvertAPI/convertapi-java.git
13+ ssh-keyscan github.com >> ~ /.ssh/known_hosts
14+ git clone git@github.com:ConvertAPI/convertapi-java.git
1315cd convertapi-java
1416
1517echo " Switching to the release branch..."
You can’t perform that action at this time.
0 commit comments