Fix github.repository_owner not being upper-case

This commit is contained in:
C0D3 M4513R
2025-05-31 14:53:26 +02:00
parent e64a57cbdc
commit 1c8d9daffc
25 changed files with 163 additions and 55 deletions

View File

@@ -33,10 +33,14 @@ jobs:
- uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug
- id: lower-repo
name: Repository to lowercase
run: |
echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
username: ${{ steps.lower-repo.outputs.repository }}
password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
@@ -45,5 +49,5 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/yolks:postgres_${{ matrix.tag }}
ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:postgres_${{ matrix.tag }}
${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:postgres_{0}', matrix.tag) || '' }}