Update maven-build.yml

This commit is contained in:
Kunchala Vikram 2023-12-30 23:44:42 +05:30 committed by GitHub
parent 3f80cdb0b2
commit a0a21cc913
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,13 +24,13 @@ jobs:
run: | run: |
mvn -B package mvn -B package
ls -al ${{ github.workspace }}/target ls -al ${{ github.workspace }}/target
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: war-file name: war-file
path: target/*.war path: target/*.war
if-no-files-found: 'error' if-no-files-found: 'error'
retention-days: 1 day retention-days: 1 day
dockerize: dockerize:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -40,5 +40,5 @@ jobs:
with: with:
name: war-file name: war-file
path: target/*.war path: target/*.war
- name: Dockerize the Application - name: Dockerize the Application
run: docker build -t ${{ env.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME}}:${{ github.run_number }} . run: docker build -t ${{ env.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME}}:${{ github.run_number }} .