Skip to content

Commit 6973c2e

Browse files
committed
make CI jobs testable without docker hub creds
1 parent effb9d1 commit 6973c2e

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

.github/workflows/build_ci_multi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
install_latest: [true]
2626
steps:
2727
- name: "login docker hub"
28+
if: ${{ secrets.DOCKER_HUB_USER }}
2829
env:
2930
DOCKER_HUB_USER: '${{ secrets.DOCKER_HUB_USER }}'
3031
DOCKER_HUB_TOKEN: '${{ secrets.DOCKER_HUB_TOKEN }}'

.github/workflows/build_latest_release_multi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
password: ${{ env.REGISTRY_PASSWORD }}
3636
registry: ${{ env.IMAGE_REGISTRY }}
3737
- name: "login docker hub"
38+
if: ${{ secrets.DOCKER_HUB_USER }}
3839
env:
3940
DOCKER_HUB_USER: '${{ secrets.DOCKER_HUB_USER }}'
4041
DOCKER_HUB_TOKEN: '${{ secrets.DOCKER_HUB_TOKEN }}'

.github/workflows/build_master.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
password: ${{ env.REGISTRY_PASSWORD }}
3838
registry: ${{ env.IMAGE_REGISTRY }}
3939
- name: "login docker hub"
40+
if: ${{ secrets.DOCKER_HUB_USER }}
4041
env:
4142
DOCKER_HUB_USER: '${{ secrets.DOCKER_HUB_USER }}'
4243
DOCKER_HUB_TOKEN: '${{ secrets.DOCKER_HUB_TOKEN }}'

.github/workflows/build_master_dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
password: ${{ env.REGISTRY_PASSWORD }}
3939
registry: ${{ env.IMAGE_REGISTRY }}
4040
- name: "login docker hub"
41+
if: ${{ secrets.DOCKER_HUB_USER }}
4142
env:
4243
DOCKER_HUB_USER: '${{ secrets.DOCKER_HUB_USER }}'
4344
DOCKER_HUB_TOKEN: '${{ secrets.DOCKER_HUB_TOKEN }}'

.github/workflows/build_master_multi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
password: ${{ env.REGISTRY_PASSWORD }}
3838
registry: ${{ env.IMAGE_REGISTRY }}
3939
- name: "login docker hub"
40+
if: ${{ secrets.DOCKER_HUB_USER }}
4041
env:
4142
DOCKER_HUB_USER: '${{ secrets.DOCKER_HUB_USER }}'
4243
DOCKER_HUB_TOKEN: '${{ secrets.DOCKER_HUB_TOKEN }}'

0 commit comments

Comments
 (0)