Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaobinqt committed Jun 3, 2021
1 parent 156c7e7 commit 44f3586
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ RUN java -version


FROM alpine
RUN echo "ci demo" > ci_demo.txt \
&& tar -czvf cidemo.tar.gz ci_demo.txt \
ARG VERSION
ARG GIT_COMMIT
RUN echo "ci demo, version:${VERSION}" > ci_demo.txt \
&& tar -czvf cidemo.${VERSION}.${GIT_COMMIT}.tar.gz ci_demo.txt \
&& mkdir -p /ci/package \
&& mv cidemo.tar.gz /ci/package
&& mv cidemo.${VERSION}.${GIT_COMMIT}.tar.gz /ci/package

0 comments on commit 44f3586

Please sign in to comment.