Fallback to default GITHUB_TOKEN, if REGISTRY_TOKEN does not exist

This commit is contained in:
C0D3 M4513R
2025-05-31 14:36:10 +02:00
parent 05bb2e03f8
commit e64a57cbdc
25 changed files with 103 additions and 28 deletions

View File

@@ -8,6 +8,9 @@ on:
- master
paths:
- bot/**
permissions:
packages: write
jobs:
pushArm:
name: "yolks:bot_${{ matrix.tag }}"
@@ -40,7 +43,7 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: ./bot/${{ matrix.tag }}
@@ -75,7 +78,7 @@ jobs:
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.REGISTRY_TOKEN }}
# password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
# - uses: docker/build-push-action@v6
# with:
# context: ./bot/${{ matrix.tag }}