Skip to content

Commit d6abf51

Browse files
committed
Authenticate to Docker Hub
1 parent e4a6b8f commit d6abf51

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.github/workflows/cd.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131
- uses: actions/checkout@v4
3232
with:
3333
fetch-depth: 1
34+
- name: Login to Docker Hub
35+
uses: docker/login-action@v3
36+
with:
37+
username: ${{ secrets.DOCKERHUB_USERNAME }}
38+
password: ${{ secrets.DOCKERHUB_TOKEN }}
3439
- name: Set up JDK
3540
uses: actions/[email protected]
3641
with:

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
- uses: actions/checkout@v4
3434
with:
3535
fetch-depth: 1
36+
- name: Login to Docker Hub
37+
uses: docker/login-action@v3
38+
with:
39+
username: ${{ secrets.DOCKERHUB_USERNAME }}
40+
password: ${{ secrets.DOCKERHUB_TOKEN }}
3641
- name: Set up JDK
3742
uses: actions/[email protected]
3843
with:

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
- uses: actions/checkout@v4
3434
with:
3535
fetch-depth: 1
36+
- name: Login to Docker Hub
37+
uses: docker/login-action@v3
38+
with:
39+
username: ${{ secrets.DOCKERHUB_USERNAME }}
40+
password: ${{ secrets.DOCKERHUB_TOKEN }}
3641
- name: Set up JDK
3742
uses: actions/[email protected]
3843
with:

0 commit comments

Comments
 (0)