Skip to content

Commit 9efb7ad

Browse files
committed
Add Docker Hub login
1 parent 5e93b87 commit 9efb7ad

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/workflows/maven.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,12 @@ jobs:
2525
java-version: '17'
2626
distribution: 'temurin'
2727
cache: maven
28+
- name: Login to Docker Hub
29+
# PRs from forks don't have access to the secrets, skip Docker login and hope we don't hit the rate limit
30+
if: ${{ !github.event.pull_request.head.repo.fork }}
31+
uses: docker/login-action@v4
32+
with:
33+
username: ${{ secrets.DOCKERHUB_USERNAME }}
34+
password: ${{ secrets.DOCKERHUB_TOKEN }}
2835
- name: Build with Maven
2936
run: mvn -B package --file pom.xml

0 commit comments

Comments
 (0)