From f94dc0dab858d8d45c85acae39198bb9a57a4c89 Mon Sep 17 00:00:00 2001 From: Thomas Kerin Date: Fri, 21 Jan 2022 18:09:07 +0000 Subject: [PATCH] Github Actions: build docker image --- .github/workflows/test.yml | 3 +++ Dockerfile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 702247a..f293dd9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,3 +24,6 @@ jobs: - name: Package project run: mvn -U clean test package + + - name: Build Docker image + run: docker build . -t paymenthubee.mifos.io/phee/connector-mojaloop-java diff --git a/Dockerfile b/Dockerfile index 5808f00..cb0c23f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM openjdk:13 EXPOSE 5000 -COPY target/*.jar . +COPY build/libs/*.jar . CMD java -jar *.jar