Adds environment file and source command
This commit is contained in:
parent
91f045ecfc
commit
a9ff451d9b
1 changed files with 8 additions and 13 deletions
|
@ -89,21 +89,16 @@ ADD ./id_rsa ./id_rsa
|
|||
ADD ./id_rsa.pub ./id_rsa.pub
|
||||
RUN chmod 0600 id_rsa
|
||||
|
||||
ARG MVN_URL
|
||||
ARG MVN_USER
|
||||
ARG MVN_PASS
|
||||
|
||||
WORKDIR /root/.gradle
|
||||
ADD ./gradle.properties ./
|
||||
|
||||
ENV MAVEN_URL=${MVN_URL}
|
||||
ENV MAVEN_USERNAME=${MVN_USER}
|
||||
ENV MAVEN_PASSWORD=${MVN_PASS}
|
||||
|
||||
WORKDIR /
|
||||
|
||||
# Precache SSH Host Keys
|
||||
RUN ssh-keyscan github.com >> /root/.ssh/known_hosts
|
||||
RUN ssh-keyscan -p 1212 git.zontreck.com >> /root/.ssh/known_hosts
|
||||
|
||||
|
||||
WORKDIR /root/.gradle
|
||||
ADD ./gradle.properties ./
|
||||
|
||||
WORKDIR /
|
||||
ADD ./env /env.bash
|
||||
RUN source /env.bash
|
||||
|
||||
ENTRYPOINT [ "java", "-jar", "/agent.jar", "-url", "https://ci.zontreck.com", "-secret", "@/agent.secret", "-name", "Linux", "-workDir", "/builder" ]
|
Loading…
Reference in a new issue