Skip to content

Commit ce84f4d

Browse files
authored
Merge pull request #71 from essentialkaos/develop
Improve GitHub Actions CI workflow
2 parents 7c51b3b + 0cfc4c2 commit ce84f4d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ jobs:
9797

9898
- name: Login to DockerHub
9999
uses: docker/login-action@v1
100+
env:
101+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
102+
if: ${{ env.DOCKERHUB_USERNAME != '' }}
100103
with:
101104
username: ${{ secrets.DOCKERHUB_USERNAME }}
102105
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -133,6 +136,9 @@ jobs:
133136

134137
- name: Login to DockerHub
135138
uses: docker/login-action@v1
139+
env:
140+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
141+
if: ${{ env.DOCKERHUB_USERNAME != '' }}
136142
with:
137143
username: ${{ secrets.DOCKERHUB_USERNAME }}
138144
password: ${{ secrets.DOCKERHUB_TOKEN }}

0 commit comments

Comments
 (0)