Skip to content

Commit

Permalink
Merge pull request #7 from infracloudio/feature/shift
Browse files Browse the repository at this point in the history
Feature/shift
  • Loading branch information
shubhadaR authored Dec 21, 2022
2 parents 39bceb7 + 62783d9 commit 3ce79af
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,20 +136,20 @@ 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/*.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'
run: echo "It exists !"
- uses: actions/upload-artifact@v3
with:
name: Package
path: staging/*.jar
path: target/*.jar


deploy:
Expand All @@ -175,9 +175,12 @@ 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:
context: .
file: Dockerfile
push: true
tags: infracloudinception/cicd_inception:1
14 changes: 14 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>3.0.0-M7</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
Expand All @@ -105,4 +110,13 @@
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>3.0.0-M7</version>
</plugin>
</plugins>
</reporting>
</project>

0 comments on commit 3ce79af

Please sign in to comment.