Skip to content

Commit 2062cea

Browse files
Thomas TupperThomas Tupper
authored andcommitted
fix(ci): require DOCKERHUB_USERNAME secret and correct publish gating
1 parent 0b70fd4 commit 2062cea

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/publish-image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Check Docker Hub secrets
2424
id: secrets
2525
env:
26-
DH_USER: ${{ secrets.foxlightfoundation }}
26+
DH_USER: ${{ secrets.DOCKERHUB_USERNAME }}
2727
DH_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
2828
run: |
2929
if [ -n "$DH_USER" ] && [ -n "$DH_TOKEN" ]; then
@@ -36,7 +36,7 @@ jobs:
3636
if: steps.secrets.outputs.ready == 'true'
3737
uses: docker/login-action@v3
3838
with:
39-
username: ${{ secrets.foxlightfoundation }}
39+
username: ${{ secrets.DOCKERHUB_USERNAME }}
4040
password: ${{ secrets.DOCKERHUB_TOKEN }}
4141

4242
- name: Build and push (Docker Hub)
@@ -53,4 +53,4 @@ jobs:
5353
if: steps.secrets.outputs.ready != 'true'
5454
run: |
5555
echo "Docker Hub secrets are not configured."
56-
echo "Set foxlightfoundation and DOCKERHUB_TOKEN in repo secrets to enable publish."
56+
echo "Set DOCKERHUB_USERNAME and DOCKERHUB_TOKEN in repo secrets to enable publish."

0 commit comments

Comments
 (0)