diff --git a/.github/workflows/apps.yml b/.github/workflows/apps.yml index d1899ca..83c563d 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 }}" @@ -26,11 +29,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: @@ -39,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 7ae5e93..54571c8 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 }}" @@ -25,11 +28,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./oses/${{ matrix.oses }} @@ -37,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 7ecc1fb..3a98e0c 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 }}" @@ -36,11 +39,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./bot/${{ matrix.tag }} @@ -50,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: | @@ -74,8 +81,8 @@ jobs: # - uses: docker/login-action@v1 # with: # registry: ghcr.io - # username: ${{ github.repository_owner }} - # password: ${{ secrets.REGISTRY_TOKEN }} + # username: ${{ steps.lower-repo.outputs.repository }} + # 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..e1c49c1 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 }}" @@ -23,11 +26,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./box64 @@ -35,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 4e52d50..b40a8df 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 }}" @@ -24,11 +27,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./bun @@ -36,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 308d5b8..37558b0 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 }}" @@ -23,11 +26,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./cassandra @@ -35,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 deb3e1a..a9db278 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 }}" @@ -28,11 +31,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./dart @@ -40,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 a4d2660..dcf8583 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 }}" @@ -30,11 +33,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./dotnet @@ -42,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 23fd08b..0037755 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 }}" @@ -27,11 +30,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./elixir @@ -39,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 a092ff0..25e0b5d 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 }}" @@ -26,11 +29,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./erlang @@ -38,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 6d8df1a..5d50fd1 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 }}" @@ -31,11 +34,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./games/${{ matrix.game }} @@ -43,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 }}" @@ -63,11 +70,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./games/${{ matrix.game }} @@ -75,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 810398a..a87a444 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 }}" @@ -31,11 +34,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./go @@ -43,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 7fcd2f4..924fb73 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 }}" @@ -25,11 +28,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./installers @@ -37,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 ff1a557..bc6775e 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 }}" @@ -32,11 +35,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./java @@ -44,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 418be2f..f7367c4 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 }}" @@ -33,11 +36,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./mariadb @@ -45,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 5e61a4b..e2c288b 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 }}" @@ -27,11 +30,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./mongodb @@ -39,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 d375bcd..c181ec4 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 }}" @@ -22,11 +25,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./mono @@ -34,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 b69b7ec..57a2d12 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 }}" @@ -34,11 +37,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./nodejs @@ -46,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 696e422..3c5aa6b 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 }}" @@ -30,11 +33,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./postgres @@ -42,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 26dd659..4370d4e 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 }}" @@ -31,11 +34,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./python @@ -43,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 ff2d1e1..7c1a8eb 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 }}" @@ -26,11 +29,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./redis @@ -38,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 ee31c23..8b997d5 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 }}" @@ -26,11 +29,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./rust @@ -38,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 a8fad37..e59d4ea 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 }}" @@ -27,11 +30,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./steamcmd @@ -39,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 0e06d67..e757a08 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 }}" @@ -22,11 +25,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./voice/${{ matrix.tag }} @@ -34,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) || '' }} @@ -54,11 +61,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./voice/${{ matrix.tag }} @@ -66,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 dbeb691..0a10780 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 }}" @@ -28,11 +31,15 @@ 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 }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ steps.lower-repo.outputs.repository }} + password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: ./wine @@ -40,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) || '' }}