From b8a7182929597923f9463e70739f9f69d518b98a Mon Sep 17 00:00:00 2001 From: Eros Candelaresi Date: Thu, 15 Jul 2021 15:59:51 +0200 Subject: [PATCH] Add docker build step --- .github/workflows/petclinic.yaml | 12 ++++++++++++ Dockerfile | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/.github/workflows/petclinic.yaml b/.github/workflows/petclinic.yaml index d5e8f11b2..5fb327e04 100644 --- a/.github/workflows/petclinic.yaml +++ b/.github/workflows/petclinic.yaml @@ -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 + \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..27736d9dc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM openjdk:8 + +ADD target /src + +CMD [ "/usr/bin/find", "/" ] \ No newline at end of file