From 4c6529ac20c5c43a2ca6f82d11f1a9f60196c1e1 Mon Sep 17 00:00:00 2001 From: Daniel Albuquerque Date: Thu, 20 May 2021 20:15:57 +0100 Subject: [PATCH] Github action to publish image is missing compilation or project (#341) * Github action to publish image is missing compilation or project --- .github/workflows/docker-build-push.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml index 25e1b3f1..943a7656 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/docker-build-push.yml @@ -11,6 +11,17 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v2 + + - uses: AdoptOpenJDK/install-jdk@v1 + with: + version: '16' + architecture: x64 + + - name: Build with Maven + run: ./mvnw clean package + - name: Docker meta id: meta uses: crazy-max/ghaction-docker-meta@v2 @@ -23,7 +34,7 @@ jobs: type=ref,event=tag - name: Login to DockerHub - uses: docker/login-action@v1 + uses: docker/login-action@v1 with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_PASSWORD }} @@ -34,4 +45,4 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - +