mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
Update maven-build.yml
This commit is contained in:
parent
3f80cdb0b2
commit
a0a21cc913
1 changed files with 9 additions and 9 deletions
18
.github/workflows/maven-build.yml
vendored
18
.github/workflows/maven-build.yml
vendored
|
@ -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 }} .
|
||||||
|
|
Loading…
Reference in a new issue