Skip to content

Commit

Permalink
Add context to be able to find the jar in the docker build.
Browse files Browse the repository at this point in the history
  • Loading branch information
meier-rene committed Dec 11, 2024
1 parent cc44be0 commit 94bbe01
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/create-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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 }}

0 comments on commit 94bbe01

Please sign in to comment.