Skip to content

Commit

Permalink
Fixes #241 - Fix build workflow (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnriem authored Jan 29, 2025
1 parent 76718ae commit 5c9f22e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- 'current'
pull_request:
branches:
- '*'
- '*'
workflow_dispatch:
jobs:
build:
Expand All @@ -20,12 +20,14 @@ jobs:
- name: Build with Maven
run: mvn -B --ntp package
- name: Login to GHCR
if: github.ref == 'refs/heads/current'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
username: ${{ secrets.GHCR_IO_USERNAME }}
password: ${{ secrets.GHCR_IO_PASSWORD }}
- name: Push to GHCR
if: github.ref == 'refs/heads/current'
run: |
cd repo
mvn --ntp -P docker install docker:build docker:push

0 comments on commit 5c9f22e

Please sign in to comment.