From 658634991cf66e282c99a51301d20d88567d2620 Mon Sep 17 00:00:00 2001 From: ClumsyAdmin <59402569+ClumsyAdmin@users.noreply.github.com> Date: Tue, 19 Nov 2024 12:44:07 -0500 Subject: [PATCH] Update ghcr info --- .github/workflows/base.yml | 9 ++++++--- .github/workflows/go.yml | 5 ++++- .github/workflows/java.yml | 6 +++--- .github/workflows/nodejs.yml | 9 ++++++--- .github/workflows/python.yml | 9 ++++++--- 5 files changed, 25 insertions(+), 13 deletions(-) diff --git a/.github/workflows/base.yml b/.github/workflows/base.yml index fc444156f..0dc8266bc 100644 --- a/.github/workflows/base.yml +++ b/.github/workflows/base.yml @@ -27,8 +27,11 @@ jobs: - uses: docker/login-action@v2 with: registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: lowercase repo + run: | + echo "REPO=${GITHUB_REPOSITORY@L}" >> "${GITHUB_ENV}" - uses: docker/build-push-action@v4 with: context: ./oses/${{ matrix.oses }} @@ -36,4 +39,4 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/pterodactyl/yolks:${{ matrix.oses }} + ghcr.io/${{ env.REPO }}:${{ matrix.oses }} diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 21d3bdde2..1a7b2f670 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -32,6 +32,9 @@ jobs: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.REGISTRY_TOKEN }} + - name: lowercase repo + run: | + echo "REPO=${GITHUB_REPOSITORY@L}" >> "${GITHUB_ENV}" - uses: docker/build-push-action@v4 with: context: ./go @@ -39,4 +42,4 @@ jobs: platforms: linux/amd64, linux/arm64 push: true tags: | - ghcr.io/pterodactyl/yolks:go_${{ matrix.tag }} + ghcr.io/${{ env.REPO }}:go_${{ matrix.tag }} diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 094b237c2..8fd490eb9 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -37,8 +37,8 @@ jobs: - uses: docker/login-action@v2 with: registry: ghcr.io - username: bloom-host - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v4 with: context: ./java @@ -46,4 +46,4 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/bloom-host/yolks:java_${{ matrix.tag }} + ghcr.io/${{ env.REPO }}:java_${{ matrix.tag }} diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 5eee70ddc..d25955816 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -33,8 +33,11 @@ jobs: - uses: docker/login-action@v2 with: registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: lowercase repo + run: | + echo "REPO=${GITHUB_REPOSITORY@L}" >> "${GITHUB_ENV}" - uses: docker/build-push-action@v4 with: context: ./nodejs @@ -42,4 +45,4 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/pterodactyl/yolks:nodejs_${{ matrix.tag }} + ghcr.io/${{ env.REPO }}:nodejs_${{ matrix.tag }} diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 2565ed428..d90e7b133 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -31,8 +31,11 @@ jobs: - uses: docker/login-action@v2 with: registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: lowercase repo + run: | + echo "REPO=${GITHUB_REPOSITORY@L}" >> "${GITHUB_ENV}" - uses: docker/build-push-action@v4 with: context: ./python @@ -40,4 +43,4 @@ jobs: platforms: linux/amd64, linux/arm64 push: true tags: | - ghcr.io/pterodactyl/yolks:python_${{ matrix.tag }} + ghcr.io/${{ env.REPO }}:python_${{ matrix.tag }}