Skip to content

Commit d32bc6d

Browse files
authored
Update Docker Hub credentials in workflow
1 parent c80edab commit d32bc6d

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ on:
88
branches: [ "master", "main" ]
99

1010
env:
11-
REGISTRY: ""
12-
DOCKER_USER: "CoolyDucks"
1311
IMAGE_NAME: "json"
1412

1513
jobs:
@@ -29,14 +27,14 @@ jobs:
2927
if: github.event_name != 'pull_request'
3028
uses: docker/login-action@v3
3129
with:
32-
username: ${{ env.DOCKER_USER }}
30+
username: ${{ secrets.DOCKERHUB_USERNAME }}
3331
password: ${{ secrets.DOCKERHUB_TOKEN }}
3432

3533
- name: Extract Docker metadata
3634
id: meta
3735
uses: docker/metadata-action@v5
3836
with:
39-
images: ${{ env.DOCKER_USER }}/${{ env.IMAGE_NAME }}
37+
images: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}
4038
tags: |
4139
type=raw,value=latest
4240
type=semver,pattern={{version}}
@@ -51,4 +49,3 @@ jobs:
5149
labels: ${{ steps.meta.outputs.labels }}
5250
cache-from: type=gha
5351
cache-to: type=gha,mode=max
54-

0 commit comments

Comments
 (0)