From 94bbe01aacd707d178ede0f71d8013f24da7b2e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Meier?= Date: Wed, 11 Dec 2024 14:51:58 +0100 Subject: [PATCH] Add context to be able to find the jar in the docker build. --- .github/workflows/create-docker.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/create-docker.yml b/.github/workflows/create-docker.yml index 438868a..c3b940a 100644 --- a/.github/workflows/create-docker.yml +++ b/.github/workflows/create-docker.yml @@ -16,6 +16,13 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Login to quay.io + uses: docker/login-action@v3 + with: + registry: quay.io + username: ${{ secrets.QUAY_USERNAME }} + password: ${{ secrets.QUAY_TOKEN }} + - name: Set up JDK 21 uses: actions/setup-java@v4 with: @@ -26,13 +33,6 @@ jobs: - name: Build with Maven run: mvn clean package - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - registry: quay.io - username: ${{ secrets.QUAY_USERNAME }} - password: ${{ secrets.QUAY_TOKEN }} - - name: Docker meta id: meta uses: docker/metadata-action@v5 @@ -49,6 +49,7 @@ jobs: - name: Build and push uses: docker/build-push-action@v6 with: + context: . push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file