Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #241 - Fix build workflow #250

Merged
merged 3 commits into from
Jan 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 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 @@ -18,14 +18,17 @@ jobs:
distribution: 'temurin'
java-version: 21
- name: Build with Maven
run: mvn -B --ntp package
run: |
mvn -B --ntp install
mvn -B --ntp -P docker docker:build
- name: Login to GHCR
if: github.ref == 'refs/heads/current'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
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
mvn -B --ntp -P docker install docker:build docker:push