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
This commit is contained in:
lezi-fun committed 2026-08-11 19:26:44 +08:00
1 parent 8cbde6dbc4
commit ab069c4b91
1 file changed
+7 -10
+7 -10
View File
@@ -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