Skip to content

Commit aa41c58

Browse files
committed
Refactor Docker Hub username references in workflows to use vars instead of env
1 parent 38088a2 commit aa41c58

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/deploy-image.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Login to DockerHub Container Registry
2727
uses: docker/login-action@v3
2828
with:
29-
username: ${{ env.DH_USER }}
29+
username: ${{ vars.DH_USER }}
3030
password: ${{ secrets.DH_TOKEN }}
3131

3232
- name: Set up QEMU
@@ -40,7 +40,7 @@ jobs:
4040
uses: docker/metadata-action@v5
4141
with:
4242
images: |
43-
${{ env.DH_USER }}/${{ env.IMAGE_NAME }}
43+
${{ vars.DH_USER }}/${{ env.IMAGE_NAME }}
4444
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
4545
tags: |
4646
# production (i.e. 2.36+b1)

.github/workflows/sync-readme.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
- name: Docker Hub Description
2222
uses: peter-evans/dockerhub-description@v4
2323
with:
24-
username: ${{ env.DH_USER }}
24+
username: ${{ vars.DH_USER }}
2525
password: ${{ secrets.DH_TOKEN }}
26-
repository: ${{ env.DH_USER }}/${{ env.IMAGE_NAME }}
26+
repository: ${{ vars.DH_USER }}/${{ env.IMAGE_NAME }}
2727
readme-filepath: ./README.md
2828
short-description: ${{ github.event.repository.description }}
2929
enable-url-completion: true

0 commit comments

Comments
 (0)