From 112c7d39a13d3dd5d591debc30a23d708492ca75 Mon Sep 17 00:00:00 2001 From: shubhadaR Date: Wed, 21 Dec 2022 11:34:40 +0530 Subject: [PATCH 1/8] Making generic template --- .github/workflows/main.yml | 23 ++++++++++++----------- pom.xml | 14 ++++++++++++++ 2 files changed, 26 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1836f06..cfddc32 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -136,12 +136,13 @@ jobs: - run: | mvn --batch-mode --update-snapshots verify mkdir staging - cp target/hello-world-maven-0.2.jar staging - - name: Check file existence - id: check_files - uses: andstor/file-existence-action@v1 - with: - files: staging/hello-world-maven-0.2.jar + # cp target/hello-world-maven-0.2.jar staging + cp target/*.jar staging + # - name: Check file existence + # id: check_files + # uses: andstor/file-existence-action@v1 + # with: + # files: staging/hello-world-maven-0.2.jar - name: File exists if: steps.check_files.outputs.files_exists == 'true' @@ -157,11 +158,11 @@ jobs: needs: Upload_Artifact steps: - - uses: actions/checkout@v2 - - uses: actions/download-artifact@v1 - with: - name: Package - path: staging +# - uses: actions/checkout@v2 +# - uses: actions/download-artifact@v1 +# with: +# name: Package +# path: staging # - name: 'Create settings.xml' # uses: whelk-io/maven-settings-xml-action@v4 # with: diff --git a/pom.xml b/pom.xml index 234733b..1613f84 100644 --- a/pom.xml +++ b/pom.xml @@ -80,6 +80,11 @@ true + + org.apache.maven.plugins + maven-surefire-report-plugin + 3.0.0-M7 + org.codehaus.mojo buildnumber-maven-plugin @@ -105,4 +110,13 @@ + + + + org.apache.maven.plugins + maven-surefire-report-plugin + 3.0.0-M7 + + + From def0a815638db33f97b6260c19027f37238c86d8 Mon Sep 17 00:00:00 2001 From: shubhadaR Date: Wed, 21 Dec 2022 11:36:13 +0530 Subject: [PATCH 2/8] Making generic template --- .github/workflows/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cfddc32..e347872 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -136,7 +136,6 @@ jobs: - run: | mvn --batch-mode --update-snapshots verify mkdir staging - # cp target/hello-world-maven-0.2.jar staging cp target/*.jar staging # - name: Check file existence # id: check_files From a7a31acc400788b1b06108cacfdc5b5f42afb5ac Mon Sep 17 00:00:00 2001 From: shubhadaR Date: Wed, 21 Dec 2022 11:42:40 +0530 Subject: [PATCH 3/8] Making generic template --- Dockerfile => dockerfile | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Dockerfile => dockerfile (100%) diff --git a/Dockerfile b/dockerfile similarity index 100% rename from Dockerfile rename to dockerfile From 3437686725e4d875a6aea9780560a458e0988bd4 Mon Sep 17 00:00:00 2001 From: shubhadaR Date: Wed, 21 Dec 2022 11:57:06 +0530 Subject: [PATCH 4/8] Making generic template --- dockerfile => Dockerfile | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename dockerfile => Dockerfile (100%) diff --git a/dockerfile b/Dockerfile similarity index 100% rename from dockerfile rename to Dockerfile From ca76473ab1143cbb8f5b19341b48b56c819e5b3a Mon Sep 17 00:00:00 2001 From: shubhadaR Date: Wed, 21 Dec 2022 12:06:14 +0530 Subject: [PATCH 5/8] Making generic template --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e347872..7894c83 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -175,6 +175,8 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USER }} password: ${{ secrets.DOCKERHUB_TOKEN_INCEPTION }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 - name: Build and Push docker image uses: docker/build-push-action@v3 with: From 23a299c9cd76ced27c6bf228121ff0477a0d4c78 Mon Sep 17 00:00:00 2001 From: shubhadaR Date: Wed, 21 Dec 2022 12:21:09 +0530 Subject: [PATCH 6/8] Making generic template --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7894c83..6b877c4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -181,5 +181,6 @@ jobs: uses: docker/build-push-action@v3 with: context: . + file: Dockerfile push: true tags: infracloudinception/cicd_inception:1 From 0ced9aa69b7b3a9551a076aa7dffec584034104a Mon Sep 17 00:00:00 2001 From: shubhadaR Date: Wed, 21 Dec 2022 12:57:33 +0530 Subject: [PATCH 7/8] Making generic template --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6b877c4..103e539 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -157,7 +157,7 @@ jobs: needs: Upload_Artifact steps: -# - uses: actions/checkout@v2 + - uses: actions/checkout@v2 # - uses: actions/download-artifact@v1 # with: # name: Package From 62783d975dc167ae3909ad60bd9a28c148ca1be1 Mon Sep 17 00:00:00 2001 From: shubhadaR Date: Wed, 21 Dec 2022 13:02:23 +0530 Subject: [PATCH 8/8] Making generic template --- .github/workflows/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 103e539..6c9ff1e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -136,7 +136,7 @@ jobs: - run: | mvn --batch-mode --update-snapshots verify mkdir staging - cp target/*.jar staging + # cp target/*.jar staging # - name: Check file existence # id: check_files # uses: andstor/file-existence-action@v1 @@ -149,7 +149,7 @@ jobs: - uses: actions/upload-artifact@v3 with: name: Package - path: staging/*.jar + path: target/*.jar deploy: @@ -158,10 +158,10 @@ jobs: steps: - uses: actions/checkout@v2 -# - uses: actions/download-artifact@v1 -# with: -# name: Package -# path: staging + - uses: actions/download-artifact@v1 + with: + name: Package + path: staging # - name: 'Create settings.xml' # uses: whelk-io/maven-settings-xml-action@v4 # with: