Skip to content

Commit 23c7679

Browse files
authored
Merge pull request #174 from joedwards32/172-ghcr-repository-support
fix: set missing GHCR_REGISTRY var
2 parents 0cd71a2 + ff68336 commit 23c7679

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ on:
1616
branches: [ "main" ]
1717

1818
env:
19-
# Use docker.io for Docker Hub if empty
2019
REGISTRY: docker.io
20+
GHCR_REGISTRY: ghcr.io
2121
# github.repository as <account>/<repo>
2222
IMAGE_NAME: ${{ github.repository }}
2323

@@ -51,7 +51,7 @@ jobs:
5151
if: github.event_name != 'pull_request'
5252
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
5353
with:
54-
registry: ghcr.io
54+
registry: ${{ env.GHCR_REGISTRY }}
5555
username: ${{ github.actor }}
5656
password: ${{ secrets.GITHUB_TOKEN }}
5757

0 commit comments

Comments
 (0)