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:
- voice/**
permissions:
packages: write
jobs:
pushx64:
name: "yolks:voice_${{ matrix.tag }}"
@@ -26,7 +29,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: ./voice/${{ matrix.tag }}
@@ -58,7 +61,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: ./voice/${{ matrix.tag }}