Fix github.repository_owner
not being upper-case
This commit is contained in:
10
.github/workflows/bot.yml
vendored
10
.github/workflows/bot.yml
vendored
@@ -39,10 +39,14 @@ jobs:
|
||||
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-buildx-
|
||||
- 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:
|
||||
@@ -53,7 +57,7 @@ jobs:
|
||||
cache-to: type=local,dest=/tmp/.buildx-cache-new
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository_owner }}/yolks:bot_${{ matrix.tag }}
|
||||
ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:bot_${{ matrix.tag }}
|
||||
${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:bot_{0}', matrix.tag) || '' }}
|
||||
- name: Move cache
|
||||
run: |
|
||||
@@ -77,7 +81,7 @@ jobs:
|
||||
# - uses: docker/login-action@v1
|
||||
# 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:
|
||||
|
Reference in New Issue
Block a user