From e64a57cbdc46dc5c92444a276ce6e6933f035056 Mon Sep 17 00:00:00 2001 From: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com> Date: Sat, 31 May 2025 14:36:10 +0200 Subject: [PATCH 1/2] Fallback to default GITHUB_TOKEN, if REGISTRY_TOKEN does not exist --- .github/workflows/apps.yml | 5 ++++- .github/workflows/base.yml | 5 ++++- .github/workflows/bot.yml | 7 +++++-- .github/workflows/box64.yml | 5 ++++- .github/workflows/bun.yml | 5 ++++- .github/workflows/cassandra.yml | 5 ++++- .github/workflows/dart.yml | 5 ++++- .github/workflows/dotnet.yml | 5 ++++- .github/workflows/elixir.yml | 5 ++++- .github/workflows/erlang.yml | 5 ++++- .github/workflows/games.yml | 7 +++++-- .github/workflows/go.yml | 5 ++++- .github/workflows/installers.yml | 5 ++++- .github/workflows/java.yml | 5 ++++- .github/workflows/mariadb.yml | 5 ++++- .github/workflows/mongodb.yml | 5 ++++- .github/workflows/mono.yml | 5 ++++- .github/workflows/nodejs.yml | 5 ++++- .github/workflows/postgres.yml | 5 ++++- .github/workflows/python.yml | 5 ++++- .github/workflows/redis.yml | 5 ++++- .github/workflows/rust.yml | 5 ++++- .github/workflows/steamcmd.yml | 5 ++++- .github/workflows/voice.yml | 7 +++++-- .github/workflows/wine.yml | 5 ++++- 25 files changed, 103 insertions(+), 28 deletions(-) diff --git a/.github/workflows/apps.yml b/.github/workflows/apps.yml index d1899ca..24241e1 100644 --- a/.github/workflows/apps.yml +++ b/.github/workflows/apps.yml @@ -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: diff --git a/.github/workflows/base.yml b/.github/workflows/base.yml index 7ae5e93..c521a7f 100644 --- a/.github/workflows/base.yml +++ b/.github/workflows/base.yml @@ -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 }} diff --git a/.github/workflows/bot.yml b/.github/workflows/bot.yml index 7ecc1fb..00c550e 100644 --- a/.github/workflows/bot.yml +++ b/.github/workflows/bot.yml @@ -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 }} diff --git a/.github/workflows/box64.yml b/.github/workflows/box64.yml index 6939a65..acc75b0 100644 --- a/.github/workflows/box64.yml +++ b/.github/workflows/box64.yml @@ -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 diff --git a/.github/workflows/bun.yml b/.github/workflows/bun.yml index 4e52d50..a031cd6 100644 --- a/.github/workflows/bun.yml +++ b/.github/workflows/bun.yml @@ -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 diff --git a/.github/workflows/cassandra.yml b/.github/workflows/cassandra.yml index 308d5b8..d78e009 100644 --- a/.github/workflows/cassandra.yml +++ b/.github/workflows/cassandra.yml @@ -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 diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index deb3e1a..86a5a99 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -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 diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index a4d2660..a93ffdf 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -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 diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 23fd08b..bf71f78 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -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 diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml index a092ff0..507d0fe 100644 --- a/.github/workflows/erlang.yml +++ b/.github/workflows/erlang.yml @@ -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 diff --git a/.github/workflows/games.yml b/.github/workflows/games.yml index 6d8df1a..8817b76 100644 --- a/.github/workflows/games.yml +++ b/.github/workflows/games.yml @@ -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 }} diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 810398a..7bad5ce 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 diff --git a/.github/workflows/installers.yml b/.github/workflows/installers.yml index 7fcd2f4..17ed27e 100644 --- a/.github/workflows/installers.yml +++ b/.github/workflows/installers.yml @@ -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 diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index ff1a557..6a89e46 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -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 diff --git a/.github/workflows/mariadb.yml b/.github/workflows/mariadb.yml index 418be2f..8430640 100644 --- a/.github/workflows/mariadb.yml +++ b/.github/workflows/mariadb.yml @@ -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 diff --git a/.github/workflows/mongodb.yml b/.github/workflows/mongodb.yml index 5e61a4b..8bae1ee 100644 --- a/.github/workflows/mongodb.yml +++ b/.github/workflows/mongodb.yml @@ -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 diff --git a/.github/workflows/mono.yml b/.github/workflows/mono.yml index d375bcd..2db7960 100644 --- a/.github/workflows/mono.yml +++ b/.github/workflows/mono.yml @@ -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 diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index b69b7ec..5510bb3 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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 diff --git a/.github/workflows/postgres.yml b/.github/workflows/postgres.yml index 696e422..1f8cae8 100644 --- a/.github/workflows/postgres.yml +++ b/.github/workflows/postgres.yml @@ -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 diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 26dd659..b455cfe 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -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 diff --git a/.github/workflows/redis.yml b/.github/workflows/redis.yml index ff2d1e1..7730cfd 100644 --- a/.github/workflows/redis.yml +++ b/.github/workflows/redis.yml @@ -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 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ee31c23..e1f1e0f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 diff --git a/.github/workflows/steamcmd.yml b/.github/workflows/steamcmd.yml index a8fad37..24e10a3 100644 --- a/.github/workflows/steamcmd.yml +++ b/.github/workflows/steamcmd.yml @@ -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 diff --git a/.github/workflows/voice.yml b/.github/workflows/voice.yml index 0e06d67..75f20f3 100644 --- a/.github/workflows/voice.yml +++ b/.github/workflows/voice.yml @@ -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 }} diff --git a/.github/workflows/wine.yml b/.github/workflows/wine.yml index dbeb691..2187a2f 100644 --- a/.github/workflows/wine.yml +++ b/.github/workflows/wine.yml @@ -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 From 1c8d9daffcbc59d5adce31e72b5fb154a10408ca Mon Sep 17 00:00:00 2001 From: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com> Date: Sat, 31 May 2025 14:53:26 +0200 Subject: [PATCH 2/2] Fix `github.repository_owner` not being upper-case --- .github/workflows/apps.yml | 8 ++++++-- .github/workflows/base.yml | 8 ++++++-- .github/workflows/bot.yml | 10 +++++++--- .github/workflows/box64.yml | 8 ++++++-- .github/workflows/bun.yml | 8 ++++++-- .github/workflows/cassandra.yml | 8 ++++++-- .github/workflows/dart.yml | 8 ++++++-- .github/workflows/dotnet.yml | 8 ++++++-- .github/workflows/elixir.yml | 8 ++++++-- .github/workflows/erlang.yml | 8 ++++++-- .github/workflows/games.yml | 16 ++++++++++++---- .github/workflows/go.yml | 8 ++++++-- .github/workflows/installers.yml | 8 ++++++-- .github/workflows/java.yml | 8 ++++++-- .github/workflows/mariadb.yml | 8 ++++++-- .github/workflows/mongodb.yml | 8 ++++++-- .github/workflows/mono.yml | 8 ++++++-- .github/workflows/nodejs.yml | 8 ++++++-- .github/workflows/postgres.yml | 8 ++++++-- .github/workflows/python.yml | 8 ++++++-- .github/workflows/redis.yml | 8 ++++++-- .github/workflows/rust.yml | 8 ++++++-- .github/workflows/steamcmd.yml | 8 ++++++-- .github/workflows/voice.yml | 16 ++++++++++++---- .github/workflows/wine.yml | 8 ++++++-- 25 files changed, 163 insertions(+), 55 deletions(-) diff --git a/.github/workflows/apps.yml b/.github/workflows/apps.yml index 24241e1..83c563d 100644 --- a/.github/workflows/apps.yml +++ b/.github/workflows/apps.yml @@ -29,10 +29,14 @@ jobs: with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 @@ -42,5 +46,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/apps:${{ matrix.app }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/apps:${{ matrix.app }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/apps:{0}', matrix.app) || '' }} diff --git a/.github/workflows/base.yml b/.github/workflows/base.yml index c521a7f..54571c8 100644 --- a/.github/workflows/base.yml +++ b/.github/workflows/base.yml @@ -28,10 +28,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -40,5 +44,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:${{ matrix.oses }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:${{ matrix.oses }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:{0}', matrix.oses) || '' }} diff --git a/.github/workflows/bot.yml b/.github/workflows/bot.yml index 00c550e..3a98e0c 100644 --- a/.github/workflows/bot.yml +++ b/.github/workflows/bot.yml @@ -39,10 +39,14 @@ jobs: key: ${{ runner.os }}-buildx-${{ github.sha }} restore-keys: | ${{ runner.os }}-buildx- + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -53,7 +57,7 @@ jobs: cache-to: type=local,dest=/tmp/.buildx-cache-new push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:bot_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:bot_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:bot_{0}', matrix.tag) || '' }} - name: Move cache run: | @@ -77,7 +81,7 @@ jobs: # - uses: docker/login-action@v1 # with: # registry: ghcr.io - # username: ${{ github.repository_owner }} + # username: ${{ steps.lower-repo.outputs.repository }} # password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} # - uses: docker/build-push-action@v6 # with: diff --git a/.github/workflows/box64.yml b/.github/workflows/box64.yml index acc75b0..e1c49c1 100644 --- a/.github/workflows/box64.yml +++ b/.github/workflows/box64.yml @@ -26,10 +26,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -38,5 +42,5 @@ jobs: platforms: linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:{0}', matrix.tag) || '' }} diff --git a/.github/workflows/bun.yml b/.github/workflows/bun.yml index a031cd6..b40a8df 100644 --- a/.github/workflows/bun.yml +++ b/.github/workflows/bun.yml @@ -27,10 +27,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -39,5 +43,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:bun_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:bun_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:bun_{0}', matrix.tag) || '' }} diff --git a/.github/workflows/cassandra.yml b/.github/workflows/cassandra.yml index d78e009..37558b0 100644 --- a/.github/workflows/cassandra.yml +++ b/.github/workflows/cassandra.yml @@ -26,10 +26,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -38,5 +42,5 @@ jobs: platforms: linux/amd64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:cassandra_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:cassandra_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:cassandra_{0}', matrix.tag) || '' }} diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 86a5a99..a9db278 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -31,10 +31,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -43,5 +47,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:dart_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:dart_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:dart_{0}', matrix.tag) || '' }} diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index a93ffdf..dcf8583 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -33,10 +33,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -45,5 +49,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:dotnet_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:dotnet_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:dotnet_{0}', matrix.tag) || '' }} diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index bf71f78..0037755 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -30,10 +30,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -42,5 +46,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:elixir_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:elixir_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:elixir_{0}', matrix.tag) || '' }} diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml index 507d0fe..25e0b5d 100644 --- a/.github/workflows/erlang.yml +++ b/.github/workflows/erlang.yml @@ -29,10 +29,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -41,5 +45,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:erlang_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:erlang_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:erlang_{0}', matrix.tag) || '' }} diff --git a/.github/workflows/games.yml b/.github/workflows/games.yml index 8817b76..5d50fd1 100644 --- a/.github/workflows/games.yml +++ b/.github/workflows/games.yml @@ -34,10 +34,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -46,7 +50,7 @@ jobs: platforms: linux/amd64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/games:${{ matrix.game }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/games:${{ matrix.game }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/games:{0}', matrix.game) || '' }} pushAll: name: "games_All:${{ matrix.game }}" @@ -66,10 +70,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -78,5 +86,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/games:${{ matrix.game }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/games:${{ matrix.game }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/games:{0}', matrix.game) || '' }} diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 7bad5ce..a87a444 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -34,10 +34,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -46,5 +50,5 @@ jobs: platforms: linux/amd64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:go_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:go_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:go_{0}', matrix.tag) || '' }} diff --git a/.github/workflows/installers.yml b/.github/workflows/installers.yml index 17ed27e..924fb73 100644 --- a/.github/workflows/installers.yml +++ b/.github/workflows/installers.yml @@ -28,10 +28,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -40,5 +44,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/installers:${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/installers:${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/installers:{0}', matrix.tag) || '' }} diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 6a89e46..bc6775e 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -35,10 +35,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -47,5 +51,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:java_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:java_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:java_{0}', matrix.tag) || '' }} diff --git a/.github/workflows/mariadb.yml b/.github/workflows/mariadb.yml index 8430640..f7367c4 100644 --- a/.github/workflows/mariadb.yml +++ b/.github/workflows/mariadb.yml @@ -36,10 +36,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -48,5 +52,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:mariadb_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:mariadb_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:mariadb_{0}', matrix.tag) || '' }} diff --git a/.github/workflows/mongodb.yml b/.github/workflows/mongodb.yml index 8bae1ee..e2c288b 100644 --- a/.github/workflows/mongodb.yml +++ b/.github/workflows/mongodb.yml @@ -30,10 +30,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -42,5 +46,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:mongodb_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:mongodb_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:mongodb_{0}', matrix.tag) || '' }} diff --git a/.github/workflows/mono.yml b/.github/workflows/mono.yml index 2db7960..c181ec4 100644 --- a/.github/workflows/mono.yml +++ b/.github/workflows/mono.yml @@ -25,10 +25,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -37,5 +41,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:mono_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:mono_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:mono_{0}', matrix.tag) || '' }} diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 5510bb3..57a2d12 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -37,10 +37,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -49,5 +53,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:nodejs_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:nodejs_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:nodejs_{0}', matrix.tag) || '' }} diff --git a/.github/workflows/postgres.yml b/.github/workflows/postgres.yml index 1f8cae8..3c5aa6b 100644 --- a/.github/workflows/postgres.yml +++ b/.github/workflows/postgres.yml @@ -33,10 +33,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -45,5 +49,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:postgres_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:postgres_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:postgres_{0}', matrix.tag) || '' }} diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index b455cfe..4370d4e 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -34,10 +34,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -46,5 +50,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:python_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:python_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:python_{0}', matrix.tag) || '' }} diff --git a/.github/workflows/redis.yml b/.github/workflows/redis.yml index 7730cfd..7c1a8eb 100644 --- a/.github/workflows/redis.yml +++ b/.github/workflows/redis.yml @@ -29,10 +29,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -41,5 +45,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:redis_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:redis_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:redis_{0}', matrix.tag) || '' }} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e1f1e0f..8b997d5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -29,10 +29,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -41,5 +45,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:rust_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:rust_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:rust_{0}', matrix.tag) || '' }} diff --git a/.github/workflows/steamcmd.yml b/.github/workflows/steamcmd.yml index 24e10a3..e59d4ea 100644 --- a/.github/workflows/steamcmd.yml +++ b/.github/workflows/steamcmd.yml @@ -30,10 +30,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -42,5 +46,5 @@ jobs: platforms: linux/amd64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/steamcmd:${{ matrix.distro }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/steamcmd:${{ matrix.distro }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/steamcmd:{0}', matrix.distro) || '' }} diff --git a/.github/workflows/voice.yml b/.github/workflows/voice.yml index 75f20f3..e757a08 100644 --- a/.github/workflows/voice.yml +++ b/.github/workflows/voice.yml @@ -25,10 +25,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -37,7 +41,7 @@ jobs: platforms: linux/amd64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:voice_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:voice_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:voice_{0}', matrix.tag) || '' }} @@ -57,10 +61,14 @@ jobs: with: version: "v0.8.2" buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -69,5 +77,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:voice_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:voice_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:voice_{0}', matrix.tag) || '' }} diff --git a/.github/workflows/wine.yml b/.github/workflows/wine.yml index 2187a2f..0a10780 100644 --- a/.github/workflows/wine.yml +++ b/.github/workflows/wine.yml @@ -31,10 +31,14 @@ jobs: - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug + - id: lower-repo + name: Repository to lowercase + run: | + echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT - uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ steps.lower-repo.outputs.repository }} password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -43,5 +47,5 @@ jobs: platforms: linux/amd64 push: true tags: | - ghcr.io/${{ github.repository_owner }}/yolks:wine_${{ matrix.tag }} + ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:wine_${{ matrix.tag }} ${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:wine_{0}', matrix.tag) || '' }}