Add docker build step

This commit is contained in:
Eros Candelaresi 2021-07-15 15:59:51 +02:00
parent 59320226be
commit b8a7182929
2 changed files with 17 additions and 0 deletions

View file

@ -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
View file

@ -0,0 +1,5 @@
FROM openjdk:8
ADD target /src
CMD [ "/usr/bin/find", "/" ]