Skip to content

Commit 87f97a1

Browse files
committed
fix: use environment variable for DockerHub username in workflow
1 parent 66adab3 commit 87f97a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ jobs:
3131
if: github.event_name != 'pull_request'
3232
uses: docker/login-action@v3
3333
with:
34-
username: ${{ secrets.DOCKERHUB_USERNAME }}
34+
username: ${{ env.DOCKERHUB_USERNAME }}
3535
password: ${{ secrets.DOCKERHUB_TOKEN }}
3636

3737
- name: Extract metadata (tags, labels) for Docker
3838
id: meta
3939
uses: docker/metadata-action@v5
4040
with:
41-
images: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}
41+
images: ${{ env.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}
4242
tags: |
4343
type=ref,event=branch
4444
type=ref,event=pr

0 commit comments

Comments
 (0)