mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 07:15:49 +00:00
Update maven-build.yml
This commit is contained in:
parent
9420335ecf
commit
1d1efb463c
1 changed files with 4 additions and 1 deletions
5
.github/workflows/maven-build.yml
vendored
5
.github/workflows/maven-build.yml
vendored
|
@ -6,6 +6,7 @@ on:
|
|||
branches: [ "main" ]
|
||||
env:
|
||||
IMAGE_NAME: "test-maven-app"
|
||||
DOCKERHUB_USERNAME: "kunchalavikram"
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -17,7 +18,7 @@ jobs:
|
|||
- name: Setup Java and Maven
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
distribution: 'temurin' # See 'Supported distributions' for available options
|
||||
java-version: '11'
|
||||
- name: Check java and mvn version
|
||||
run: |
|
||||
|
@ -29,3 +30,5 @@ jobs:
|
|||
run: |
|
||||
mvn -B package
|
||||
ls -al ${{ github.workspace }}/target
|
||||
- name: Dockerize the Application
|
||||
run: docker build -t ${{ env.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME}}:${{ github.run_number }} .
|
||||
|
|
Loading…
Reference in a new issue