File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11FROM alpine:3.8
2+ ARG VERSION
23RUN apk --update add openjdk8-jre
34RUN mkdir -p /daf/app
4- COPY ./target/yamlparser-0.1.0 -jar-with-dependencies.jar /daf/daf.jar
5+ COPY ./target/yamlparser-${VERSION} -jar-with-dependencies.jar /daf/daf.jar
56WORKDIR /daf/app
67CMD ["java" , "-jar" , "/daf/daf.jar" ]
Original file line number Diff line number Diff line change 55DOCKERUSER=delphix
66IMAGE=automation-framework
77
8- docker build -t ${DOCKERUSER} /$IMAGE :latest .
8+ docker build -t ${DOCKERUSER} /$IMAGE :latest --build-arg VERSION= $1 .
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ git pull
1111version=` cat VERSION`
1212
1313# run build
14- ./build.sh
14+ ./build.sh $version
1515
1616# tag it
1717git add -A
You can’t perform that action at this time.
0 commit comments