Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 4915cb8

Browse files
author
Corneil du Plessis
committed
Added DockerHub login to CI to prevent failure of TestContainer tests.
Updated docker/login-action to v3
1 parent 1ca3de8 commit 4915cb8

File tree

8 files changed

+32
-6
lines changed

8 files changed

+32
-6
lines changed

.github/actions/build-images/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ runs:
2323

2424
# docker hub login
2525
- name: Login to docker.io
26-
uses: docker/login-action@v1
26+
uses: docker/login-action@v3
2727
with:
2828
username: ${{ inputs.dockerhub-username }}
2929
password: ${{ inputs.dockerhub-password }}

.github/workflows/build-images.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
with:
6868
pack-version: 0.30.0
6969
- name: Login to docker.io
70-
uses: docker/login-action@v1
70+
uses: docker/login-action@v3
7171
with:
7272
username: ${{ secrets.DOCKERHUB_USERNAME }}
7373
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -93,7 +93,7 @@ jobs:
9393
steps:
9494
- uses: actions/checkout@v4
9595
- name: Login to docker.io
96-
uses: docker/login-action@v1
96+
uses: docker/login-action@v3
9797
with:
9898
username: ${{ secrets.DOCKERHUB_USERNAME }}
9999
password: ${{ secrets.DOCKERHUB_TOKEN }}

.github/workflows/build-snapshot-worker.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ jobs:
3939
restore-keys: |
4040
${{ runner.os }}-m2-
4141
42+
- name: Login dockerhub
43+
uses: docker/login-action@v3
44+
with:
45+
username: ${{ secrets.DOCKERHUB_USERNAME }}
46+
password: ${{ secrets.DOCKERHUB_TOKEN }}
4247
# target deploy repos
4348
- name: Configure JFrog Cli
4449
run: |

.github/workflows/ci-it-db.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
2424
with:
2525
maven-version: 3.8.8
2626
maven-mirror: 'https://dlcdn.apache.org/maven/maven-3/'
27+
- name: Login dockerhub
28+
uses: docker/login-action@v3
29+
with:
30+
username: ${{ secrets.DOCKERHUB_USERNAME }}
31+
password: ${{ secrets.DOCKERHUB_TOKEN }}
2732
- name: 'Action: Run Db IT'
2833
run: |
2934
mvn \

.github/workflows/ci-it-security.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ jobs:
1919
with:
2020
maven-version: 3.8.8
2121
maven-mirror: 'https://dlcdn.apache.org/maven/maven-3/'
22+
- name: Login dockerhub
23+
uses: docker/login-action@v3
24+
with:
25+
username: ${{ secrets.DOCKERHUB_USERNAME }}
26+
password: ${{ secrets.DOCKERHUB_TOKEN }}
27+
2228
- name: Run Security IT
2329
run: |
2430
mvn \

.github/workflows/ci-pr.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ jobs:
2727
with:
2828
maven-version: 3.8.8
2929
maven-mirror: 'https://dlcdn.apache.org/maven/maven-3/'
30-
# build
30+
- name: Login dockerhub
31+
uses: docker/login-action@v3
32+
with:
33+
username: ${{ secrets.DOCKERHUB_USERNAME }}
34+
password: ${{ secrets.DOCKERHUB_TOKEN }}
35+
# build
3136
- name: Build
3237
run: |
3338
mvn -B -s .github/settings.xml clean install

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ jobs:
4444
version: 1.46.4
4545
env:
4646
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
47-
# setup frog cli
47+
- name: Login dockerhub
48+
uses: docker/login-action@v3
49+
with:
50+
username: ${{ secrets.DOCKERHUB_USERNAME }}
51+
password: ${{ secrets.DOCKERHUB_TOKEN }}
52+
# setup frog cli
4853
- name: Configure JFrog Cli
4954
run: |
5055
jfrog rt mvnc \

.github/workflows/common-carvel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
with:
6262
token: ${{ secrets.GITHUB_TOKEN }}
6363
- name: Login dockerhub
64-
uses: docker/login-action@v1
64+
uses: docker/login-action@v3
6565
with:
6666
username: ${{ secrets.DOCKERHUB_USERNAME }}
6767
password: ${{ secrets.DOCKERHUB_TOKEN }}

0 commit comments

Comments
 (0)