Skip to content

Commit 49525a2

Browse files
committed
push to ghcr instead of dockerhub
1 parent 1fdefce commit 49525a2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/push.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ jobs:
1818
- name: Login to DockerHub
1919
uses: docker/login-action@v1
2020
with:
21-
username: ${{ secrets.DOCKERHUB_USERNAME }}
22-
password: ${{ secrets.DOCKERHUB_TOKEN }}
21+
registry: ghcr.io
22+
username: ${{ github.actor }}
23+
password: ${{ secrets.GITHUB_TOKEN }}
2324

2425
- name: Build and push
2526
uses: docker/build-push-action@v2
2627
with:
2728
push: true
28-
tags: ${{ github.repository }}:${{ steps.sha.outputs.sha7 }}
29+
tags: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ steps.sha.outputs.sha7 }}

0 commit comments

Comments
 (0)