Skip to content

Commit 6cf43b9

Browse files
committed
fix registry name
1 parent dd45651 commit 6cf43b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/build-docker/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ runs:
6565
if: inputs.push == 'true'
6666
uses: docker/login-action@v3
6767
with:
68-
registry: ${{ inputs.registry }}
68+
registry: ${{ inputs.registry == 'docker.io' && '' || inputs.registry }}
6969
username: ${{ inputs.username }}
7070
password: ${{ inputs.password }}
7171

7272
- name: Extract metadata
7373
id: meta
7474
uses: docker/metadata-action@v5
7575
with:
76-
images: ${{ inputs.registry }}/${{ inputs.image-name }}
76+
images: ${{ inputs.image-name }}
7777
tags: |
7878
# For releases: apply SemVer tags and latest (excludes pre-releases automatically)
7979
type=semver,pattern={{version}}

0 commit comments

Comments
 (0)