Skip to content

Commit

Permalink
Install git package
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhadaR committed Dec 14, 2022
1 parent 6801f0d commit 73c2df3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ jobs:
# mvn install
- name: Docker build
run: |
docker build . -t shubhadainfra/cicd_infracloud:1
docker build --build-arg FOO=${{ steps.build_and_test.outputs.build_number }} . -t shubhadainfra/cicd_infracloud:1
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM openjdk:8-jre
ARG version
COPY target/hello-world-maven-0.2.*.jar /home/myjar.jar
ARG FOO=${FOO}

ENV FOO=${FOO}
COPY target/hello-world-maven-0.2.$FOO.jar /home/myjar.jar
CMD ["java","-jar","/home/myjar.jar"]

0 comments on commit 73c2df3

Please sign in to comment.