From ab069c4b91ca1eec7be1297dfe3d43c65639f388 Mon Sep 17 00:00:00 2001 From: lezi-fun <177434121+lezi-fun@users.noreply.github.com> Date: Tue, 11 Aug 2026 19:26:44 +0800 Subject: [PATCH] ci: fixed image name + PAT login (publish from upstream next to lezi-fun GHCR) - IMAGE_NAME pinned to lezi-fun/forumlify-deploy (not github.repository) - login uses secrets.GHCR_TOKEN (PAT with packages:write) so any repo (upstream Furrium/forumlify included) can publish to lezi-fun GHCR - removed repo filter --- .github/workflows/docker-ghcr.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docker-ghcr.yml b/.github/workflows/docker-ghcr.yml index bbd8b1f..027c3d7 100644 --- a/.github/workflows/docker-ghcr.yml +++ b/.github/workflows/docker-ghcr.yml @@ -8,11 +8,10 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} + IMAGE_NAME: lezi-fun/forumlify-deploy jobs: linux-amd64: - if: github.repository == 'lezi-fun/forumlify-deploy' runs-on: ubuntu-latest permissions: contents: read @@ -23,8 +22,8 @@ jobs: - uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: lezi-fun + password: ${{ secrets.GHCR_TOKEN }} - name: Metadata id: meta uses: docker/metadata-action@v5 @@ -46,7 +45,6 @@ jobs: cache-to: type=gha,mode=max,scope=amd64 linux-arm64: - if: github.repository == 'lezi-fun/forumlify-deploy' runs-on: ubuntu-latest permissions: contents: read @@ -57,8 +55,8 @@ jobs: - uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: lezi-fun + password: ${{ secrets.GHCR_TOKEN }} - name: Metadata id: meta uses: docker/metadata-action@v5 @@ -81,7 +79,6 @@ jobs: manifest: - if: github.repository == 'lezi-fun/forumlify-deploy' needs: [linux-amd64, linux-arm64] runs-on: ubuntu-latest permissions: @@ -91,8 +88,8 @@ jobs: - uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: lezi-fun + password: ${{ secrets.GHCR_TOKEN }} - name: Metadata (base tags) id: meta uses: docker/metadata-action@v5