mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 01:15:49 +00:00
Add docker build step
This commit is contained in:
parent
59320226be
commit
b8a7182929
2 changed files with 17 additions and 0 deletions
12
.github/workflows/petclinic.yaml
vendored
12
.github/workflows/petclinic.yaml
vendored
|
@ -23,6 +23,7 @@ jobs:
|
|||
with:
|
||||
name: petclinic-build
|
||||
path: target/
|
||||
|
||||
Test-Petclinic:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ Build-Petclinic ]
|
||||
|
@ -39,3 +40,14 @@ jobs:
|
|||
name: petclinic-build
|
||||
path: target/
|
||||
- run: mvn test
|
||||
|
||||
Dockerize-Petclinic:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ Build-Petclinic ]
|
||||
steps:
|
||||
- name: Set up Docker
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: false
|
||||
tags: my_container:latest
|
||||
|
5
Dockerfile
Normal file
5
Dockerfile
Normal file
|
@ -0,0 +1,5 @@
|
|||
FROM openjdk:8
|
||||
|
||||
ADD target /src
|
||||
|
||||
CMD [ "/usr/bin/find", "/" ]
|
Loading…
Reference in a new issue