We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76718ae commit 5c9f22eCopy full SHA for 5c9f22e
.github/workflows/build.yml
@@ -5,7 +5,7 @@ on:
5
- 'current'
6
pull_request:
7
branches:
8
- - '*'
+ - '*'
9
workflow_dispatch:
10
jobs:
11
build:
@@ -20,12 +20,14 @@ jobs:
20
- name: Build with Maven
21
run: mvn -B --ntp package
22
- name: Login to GHCR
23
+ if: github.ref == 'refs/heads/current'
24
uses: docker/login-action@v2
25
with:
26
registry: ghcr.io
- username: ${{ secrets.GHCR_USERNAME }}
27
- password: ${{ secrets.GHCR_TOKEN }}
+ username: ${{ secrets.GHCR_IO_USERNAME }}
28
+ password: ${{ secrets.GHCR_IO_PASSWORD }}
29
- name: Push to GHCR
30
31
run: |
32
cd repo
33
mvn --ntp -P docker install docker:build docker:push
0 commit comments