Skip to content

Commit 64debfc

Browse files
fix: add dockerhub as a registry
1 parent 2909625 commit 64debfc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,16 @@ jobs:
5959
username: ${{ github.actor }}
6060
password: ${{ secrets.GITHUB_TOKEN }}
6161

62+
- name: Login to DockerHub
63+
uses: docker/login-action@v3
64+
with:
65+
registry: ghcr.io
66+
username: ${{ secrets.DOCKERHUB_USERNAME }}
67+
password: ${{ secrets.DOCKERHUB_PAT }}
68+
6269
- name: Build and push
6370
uses: docker/build-push-action@v6
6471
with:
6572
context: .
6673
push: true
67-
tags: ghcr.io/jessesimpson36/yamldiff:${{ github.ref_name }}
74+
tags: ghcr.io/jessesimpson36/yamldiff:${{ github.ref_name }},jessesimpson/yamldiff:${{ github.ref_name }}

0 commit comments

Comments
 (0)