Skip to content

Commit 5c9f22e

Browse files
authored
Fixes #241 - Fix build workflow (#249)
1 parent 76718ae commit 5c9f22e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- 'current'
66
pull_request:
77
branches:
8-
- '*'
8+
- '*'
99
workflow_dispatch:
1010
jobs:
1111
build:
@@ -20,12 +20,14 @@ jobs:
2020
- name: Build with Maven
2121
run: mvn -B --ntp package
2222
- name: Login to GHCR
23+
if: github.ref == 'refs/heads/current'
2324
uses: docker/login-action@v2
2425
with:
2526
registry: ghcr.io
26-
username: ${{ secrets.GHCR_USERNAME }}
27-
password: ${{ secrets.GHCR_TOKEN }}
27+
username: ${{ secrets.GHCR_IO_USERNAME }}
28+
password: ${{ secrets.GHCR_IO_PASSWORD }}
2829
- name: Push to GHCR
30+
if: github.ref == 'refs/heads/current'
2931
run: |
3032
cd repo
3133
mvn --ntp -P docker install docker:build docker:push

0 commit comments

Comments
 (0)