Skip to content

Commit dd9f77f

Browse files
ci: skip docker-image when DockerHub secrets are missing
1 parent 139606b commit dd9f77f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212

1313
jobs:
1414
docker_amd64:
15+
if: ${{ secrets.DOCKERHUB_USERNAME != '' && secrets.DOCKERHUB_TOKEN != '' }}
1516
runs-on: ubuntu-latest
1617
steps:
1718
- name: Checkout
@@ -43,6 +44,7 @@ jobs:
4344
${{ env.DOCKERHUB_REPO }}:${{ env.VERSION }}-amd64
4445
4546
docker_arm64:
47+
if: ${{ secrets.DOCKERHUB_USERNAME != '' && secrets.DOCKERHUB_TOKEN != '' }}
4648
runs-on: ubuntu-24.04-arm
4749
steps:
4850
- name: Checkout
@@ -74,6 +76,7 @@ jobs:
7476
${{ env.DOCKERHUB_REPO }}:${{ env.VERSION }}-arm64
7577
7678
docker_manifest:
79+
if: ${{ secrets.DOCKERHUB_USERNAME != '' && secrets.DOCKERHUB_TOKEN != '' }}
7780
runs-on: ubuntu-latest
7881
needs:
7982
- docker_amd64

0 commit comments

Comments
 (0)