Fix GHCR image tags to use lowercase repository owner
GHCR requires lowercase image names. Added step to convert owner to lowercase.
This commit is contained in:
parent
74bdb1c84b
commit
8620dc0421
1 changed files with 6 additions and 2 deletions
8
.github/workflows/docker-publish.yml
vendored
8
.github/workflows/docker-publish.yml
vendored
|
|
@ -33,6 +33,10 @@ jobs:
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set image owner to lowercase
|
||||||
|
id: owner
|
||||||
|
run: echo "owner=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
|
@ -44,5 +48,5 @@ jobs:
|
||||||
build-args: |
|
build-args: |
|
||||||
COMMIT_SHA=${{ github.sha }}
|
COMMIT_SHA=${{ github.sha }}
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ github.repository_owner }}/soulsync:latest
|
ghcr.io/${{ steps.owner.outputs.owner }}/soulsync:latest
|
||||||
ghcr.io/${{ github.repository_owner }}/soulsync:${{ inputs.version_tag || 'dev' }}
|
ghcr.io/${{ steps.owner.outputs.owner }}/soulsync:${{ inputs.version_tag || 'dev' }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue