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:
1 parent
8cbde6dbc4
commit
ab069c4b91
1 file changed
+7
-10
@@ -8,11 +8,10 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
IMAGE_NAME: lezi-fun/forumlify-deploy
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux-amd64:
|
linux-amd64:
|
||||||
if: github.repository == 'lezi-fun/forumlify-deploy'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -23,8 +22,8 @@ jobs:
|
|||||||
- uses: docker/login-action@v3
|
- uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: lezi-fun
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GHCR_TOKEN }}
|
||||||
- name: Metadata
|
- name: Metadata
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
@@ -46,7 +45,6 @@ jobs:
|
|||||||
cache-to: type=gha,mode=max,scope=amd64
|
cache-to: type=gha,mode=max,scope=amd64
|
||||||
|
|
||||||
linux-arm64:
|
linux-arm64:
|
||||||
if: github.repository == 'lezi-fun/forumlify-deploy'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -57,8 +55,8 @@ jobs:
|
|||||||
- uses: docker/login-action@v3
|
- uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: lezi-fun
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GHCR_TOKEN }}
|
||||||
- name: Metadata
|
- name: Metadata
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
@@ -81,7 +79,6 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
manifest:
|
manifest:
|
||||||
if: github.repository == 'lezi-fun/forumlify-deploy'
|
|
||||||
needs: [linux-amd64, linux-arm64]
|
needs: [linux-amd64, linux-arm64]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
@@ -91,8 +88,8 @@ jobs:
|
|||||||
- uses: docker/login-action@v3
|
- uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: lezi-fun
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GHCR_TOKEN }}
|
||||||
- name: Metadata (base tags)
|
- name: Metadata (base tags)
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
|
|||||||
Reference in new issue
Block a user