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 }} - +