Skip to content

Commit 5c414cf

Browse files
author
GeiserX
committed
Explicitly set Docker Hub registry in metadata action to prevent ghcr.io default
1 parent 785caa7 commit 5c414cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ jobs:
8383
id: meta
8484
uses: docker/metadata-action@v5
8585
with:
86-
images: ${{ env.IMAGE_NAME }}
86+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
87+
flavor: |
88+
suffix=-${{ github.ref_name }}
8789
tags: |
8890
type=ref,event=branch
8991
type=ref,event=pr
@@ -191,7 +193,7 @@ jobs:
191193
192194
### Docker
193195
```bash
194-
docker pull ${{ env.IMAGE_NAME }}:${{ steps.tag_version.outputs.version }}
196+
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.tag_version.outputs.version }}
195197
```
196198
197199
### Changes

0 commit comments

Comments
 (0)