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:
- steamcmd/**
permissions:
packages: write
jobs:
push:
name: "steamcmd:${{ matrix.distro }}"
@@ -31,7 +34,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: ./steamcmd