From ff5fd25991e3c2271206926fdf0c80e9917b0572 Mon Sep 17 00:00:00 2001 From: shubhadaR Date: Wed, 14 Dec 2022 15:58:26 +0530 Subject: [PATCH] Install git package --- .github/workflows/main.yml | 3 +-- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5e374b7..b0f8e46 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -178,8 +178,7 @@ jobs: # mvn install - name: Docker build run: | - docker build . -t shubhadainfra/cicd_infracloud:1 --build-arg version=${{ steps.build_and_test.outputs.build_number }} - - name: Login to DockerHub + docker build . -t shubhadainfra/cicd_infracloud:1 uses: docker/login-action@v1 with: username: ${{ secrets.DOCKERHUB_USERNAME }} diff --git a/Dockerfile b/Dockerfile index 10f3d78..2615add 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ FROM openjdk:8-jre ARG version -ADD target/hello-world-maven-0.2.$version.jar /home/myjar.jar +ADD target/hello-world-maven-0.2.?.jar /home/myjar.jar CMD ["java","-jar","/home/myjar.jar"] \ No newline at end of file