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 - master
paths: paths:
- apps/** - apps/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "yolks:apps_${{ matrix.app }}" name: "yolks:apps_${{ matrix.app }}"
@@ -30,7 +33,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:

View File

@@ -8,6 +8,9 @@ on:
- master - master
paths: paths:
- oses/** - oses/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "yolks:${{ matrix.oses }}" name: "yolks:${{ matrix.oses }}"
@@ -29,7 +32,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./oses/${{ matrix.oses }} context: ./oses/${{ matrix.oses }}

View File

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

View File

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

View File

@@ -8,6 +8,9 @@ on:
- master - master
paths: paths:
- bun/** - bun/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "yolks:bun_${{ matrix.tag }}" name: "yolks:bun_${{ matrix.tag }}"
@@ -28,7 +31,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./bun context: ./bun

View File

@@ -8,6 +8,9 @@ on:
- master - master
paths: paths:
- cassandra/** - cassandra/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "yolks:cassandra_${{ matrix.tag }}" name: "yolks:cassandra_${{ matrix.tag }}"
@@ -27,7 +30,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./cassandra context: ./cassandra

View File

@@ -8,6 +8,9 @@ on:
- master - master
paths: paths:
- dart/** - dart/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "yolks:dart_${{ matrix.tag }}" name: "yolks:dart_${{ matrix.tag }}"
@@ -32,7 +35,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./dart context: ./dart

View File

@@ -8,6 +8,9 @@ on:
- master - master
paths: paths:
- dotnet/** - dotnet/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "yolks:dotnet_${{ matrix.tag }}" name: "yolks:dotnet_${{ matrix.tag }}"
@@ -34,7 +37,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./dotnet context: ./dotnet

View File

@@ -8,6 +8,9 @@ on:
- master - master
paths: paths:
- elixir/** - elixir/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "yolks:elixir_${{ matrix.tag }}" name: "yolks:elixir_${{ matrix.tag }}"
@@ -31,7 +34,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./elixir context: ./elixir

View File

@@ -8,6 +8,9 @@ on:
- master - master
paths: paths:
- erlang/** - erlang/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "yolks:erlang_${{ matrix.tag }}" name: "yolks:erlang_${{ matrix.tag }}"
@@ -30,7 +33,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./erlang context: ./erlang

View File

@@ -8,6 +8,9 @@ on:
- master - master
paths: paths:
- games/** - games/**
permissions:
packages: write
jobs: jobs:
pushAMD64: pushAMD64:
name: "games_AMD64:${{ matrix.game }}" name: "games_AMD64:${{ matrix.game }}"
@@ -35,7 +38,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./games/${{ matrix.game }} context: ./games/${{ matrix.game }}
@@ -67,7 +70,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./games/${{ matrix.game }} context: ./games/${{ matrix.game }}

View File

@@ -8,6 +8,9 @@ on:
- master - master
paths: paths:
- go/** - go/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "yolks:go_${{ matrix.tag }}" name: "yolks:go_${{ matrix.tag }}"
@@ -35,7 +38,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./go context: ./go

View File

@@ -8,6 +8,9 @@ on:
- master - master
paths: paths:
- installers/** - installers/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "installers:{{ matrix.tag }}" name: "installers:{{ matrix.tag }}"
@@ -29,7 +32,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./installers context: ./installers

View File

@@ -8,6 +8,9 @@ on:
- master - master
paths: paths:
- java/** - java/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "yolks:java_${{ matrix.tag }}" name: "yolks:java_${{ matrix.tag }}"
@@ -36,7 +39,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./java context: ./java

View File

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

View File

@@ -9,6 +9,9 @@ on:
- master - master
paths: paths:
- mongodb/** - mongodb/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "yolks:mongodb_${{ matrix.tag }}" name: "yolks:mongodb_${{ matrix.tag }}"
@@ -31,7 +34,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./mongodb context: ./mongodb

View File

@@ -8,6 +8,9 @@ on:
- master - master
paths: paths:
- mono/** - mono/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "yolks:mono_${{ matrix.tag }}" name: "yolks:mono_${{ matrix.tag }}"
@@ -26,7 +29,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./mono context: ./mono

View File

@@ -8,6 +8,9 @@ on:
- master - master
paths: paths:
- nodejs/** - nodejs/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "yolks:nodejs_${{ matrix.tag }}" name: "yolks:nodejs_${{ matrix.tag }}"
@@ -38,7 +41,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./nodejs context: ./nodejs

View File

@@ -9,6 +9,9 @@ on:
- master - master
paths: paths:
- postgres/** - postgres/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "yolks:postgres_${{ matrix.tag }}" name: "yolks:postgres_${{ matrix.tag }}"
@@ -34,7 +37,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./postgres context: ./postgres

View File

@@ -8,6 +8,9 @@ on:
- master - master
paths: paths:
- python/** - python/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "yolks:python_${{ matrix.tag }}" name: "yolks:python_${{ matrix.tag }}"
@@ -35,7 +38,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./python context: ./python

View File

@@ -9,6 +9,9 @@ on:
- master - master
paths: paths:
- redis/** - redis/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "yolks:redis_${{ matrix.tag }}" name: "yolks:redis_${{ matrix.tag }}"
@@ -30,7 +33,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./redis context: ./redis

View File

@@ -8,6 +8,9 @@ on:
- master - master
paths: paths:
- rust/** - rust/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "yolks:rust_${{ matrix.tag }}" name: "yolks:rust_${{ matrix.tag }}"
@@ -30,7 +33,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./rust context: ./rust

View File

@@ -8,6 +8,9 @@ on:
- master - master
paths: paths:
- steamcmd/** - steamcmd/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "steamcmd:${{ matrix.distro }}" name: "steamcmd:${{ matrix.distro }}"
@@ -31,7 +34,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./steamcmd context: ./steamcmd

View File

@@ -8,6 +8,9 @@ on:
- master - master
paths: paths:
- voice/** - voice/**
permissions:
packages: write
jobs: jobs:
pushx64: pushx64:
name: "yolks:voice_${{ matrix.tag }}" name: "yolks:voice_${{ matrix.tag }}"
@@ -26,7 +29,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./voice/${{ matrix.tag }} context: ./voice/${{ matrix.tag }}
@@ -58,7 +61,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./voice/${{ matrix.tag }} context: ./voice/${{ matrix.tag }}

View File

@@ -8,6 +8,9 @@ on:
- master - master
paths: paths:
- wine/** - wine/**
permissions:
packages: write
jobs: jobs:
push: push:
name: "yolks:wine_${{ matrix.tag }}" name: "yolks:wine_${{ matrix.tag }}"
@@ -32,7 +35,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: ./wine context: ./wine