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:
- apps/**
permissions:
packages: write
jobs:
push:
name: "yolks:apps_${{ matrix.app }}"
@@ -30,7 +33,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:

View File

@@ -8,6 +8,9 @@ on:
- master
paths:
- oses/**
permissions:
packages: write
jobs:
push:
name: "yolks:${{ matrix.oses }}"
@@ -29,7 +32,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: ./oses/${{ matrix.oses }}

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 }}

View File

@@ -8,6 +8,9 @@ on:
- master
paths:
- box64/**
permissions:
packages: write
jobs:
push:
name: "yolks:${{ matrix.tag }}"
@@ -27,7 +30,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: ./box64

View File

@@ -8,6 +8,9 @@ on:
- master
paths:
- bun/**
permissions:
packages: write
jobs:
push:
name: "yolks:bun_${{ matrix.tag }}"
@@ -28,7 +31,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: ./bun

View File

@@ -8,6 +8,9 @@ on:
- master
paths:
- cassandra/**
permissions:
packages: write
jobs:
push:
name: "yolks:cassandra_${{ matrix.tag }}"
@@ -27,7 +30,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: ./cassandra

View File

@@ -8,6 +8,9 @@ on:
- master
paths:
- dart/**
permissions:
packages: write
jobs:
push:
name: "yolks:dart_${{ matrix.tag }}"
@@ -32,7 +35,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: ./dart

View File

@@ -8,6 +8,9 @@ on:
- master
paths:
- dotnet/**
permissions:
packages: write
jobs:
push:
name: "yolks:dotnet_${{ matrix.tag }}"
@@ -34,7 +37,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: ./dotnet

View File

@@ -8,6 +8,9 @@ on:
- master
paths:
- elixir/**
permissions:
packages: write
jobs:
push:
name: "yolks:elixir_${{ matrix.tag }}"
@@ -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: ./elixir

View File

@@ -8,6 +8,9 @@ on:
- master
paths:
- erlang/**
permissions:
packages: write
jobs:
push:
name: "yolks:erlang_${{ matrix.tag }}"
@@ -30,7 +33,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: ./erlang

View File

@@ -8,6 +8,9 @@ on:
- master
paths:
- games/**
permissions:
packages: write
jobs:
pushAMD64:
name: "games_AMD64:${{ matrix.game }}"
@@ -35,7 +38,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: ./games/${{ matrix.game }}
@@ -67,7 +70,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: ./games/${{ matrix.game }}

View File

@@ -8,6 +8,9 @@ on:
- master
paths:
- go/**
permissions:
packages: write
jobs:
push:
name: "yolks:go_${{ matrix.tag }}"
@@ -35,7 +38,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: ./go

View File

@@ -8,6 +8,9 @@ on:
- master
paths:
- installers/**
permissions:
packages: write
jobs:
push:
name: "installers:{{ matrix.tag }}"
@@ -29,7 +32,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: ./installers

View File

@@ -8,6 +8,9 @@ on:
- master
paths:
- java/**
permissions:
packages: write
jobs:
push:
name: "yolks:java_${{ matrix.tag }}"
@@ -36,7 +39,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: ./java

View File

@@ -9,6 +9,9 @@ on:
- master
paths:
- mariadb/**
permissions:
packages: write
jobs:
push:
name: "yolks:mariadb_${{ matrix.tag }}"
@@ -37,7 +40,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: ./mariadb

View File

@@ -9,6 +9,9 @@ on:
- master
paths:
- mongodb/**
permissions:
packages: write
jobs:
push:
name: "yolks:mongodb_${{ matrix.tag }}"
@@ -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: ./mongodb

View File

@@ -8,6 +8,9 @@ on:
- master
paths:
- mono/**
permissions:
packages: write
jobs:
push:
name: "yolks:mono_${{ 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: ./mono

View File

@@ -8,6 +8,9 @@ on:
- master
paths:
- nodejs/**
permissions:
packages: write
jobs:
push:
name: "yolks:nodejs_${{ matrix.tag }}"
@@ -38,7 +41,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: ./nodejs

View File

@@ -9,6 +9,9 @@ on:
- master
paths:
- postgres/**
permissions:
packages: write
jobs:
push:
name: "yolks:postgres_${{ matrix.tag }}"
@@ -34,7 +37,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: ./postgres

View File

@@ -8,6 +8,9 @@ on:
- master
paths:
- python/**
permissions:
packages: write
jobs:
push:
name: "yolks:python_${{ matrix.tag }}"
@@ -35,7 +38,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: ./python

View File

@@ -9,6 +9,9 @@ on:
- master
paths:
- redis/**
permissions:
packages: write
jobs:
push:
name: "yolks:redis_${{ matrix.tag }}"
@@ -30,7 +33,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: ./redis

View File

@@ -8,6 +8,9 @@ on:
- master
paths:
- rust/**
permissions:
packages: write
jobs:
push:
name: "yolks:rust_${{ matrix.tag }}"
@@ -30,7 +33,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: ./rust

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

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 }}

View File

@@ -8,6 +8,9 @@ on:
- master
paths:
- wine/**
permissions:
packages: write
jobs:
push:
name: "yolks:wine_${{ matrix.tag }}"
@@ -32,7 +35,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: ./wine