From 9db5a8b1165dd03f4205e5eea1d03702d743e137 Mon Sep 17 00:00:00 2001 From: Kyle Sanderson Date: Sun, 28 Jan 2024 11:50:06 -0800 Subject: [PATCH] build(github): remove hard coded autobrr/autobrr (#1365) * feat(ci): push to PRs image repository. * always publish * brand new eyes * really. * k. whatever * . --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c4433fd..68e07ca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ on: env: REGISTRY: ghcr.io - REGISTRY_IMAGE: ghcr.io/autobrr/autobrr + REGISTRY_IMAGE: ghcr.io/${{ github.repository }} permissions: contents: write @@ -213,7 +213,7 @@ jobs: context: . file: ./ci.Dockerfile platforms: ${{ matrix.platform }} - outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=${{ (github.event.pull_request.head.repo.full_name == 'autobrr/autobrr' || github.event_name != 'pull_request') && 'true' || 'false' }} + outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=${{ (github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request') && 'true' || 'false' }} labels: ${{ steps.meta.outputs.labels }} build-args: | BUILDTIME=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }} @@ -241,7 +241,7 @@ jobs: docker-merge: name: Publish Docker multi-arch manifest - if: ${{ github.event.pull_request.head.repo.full_name == 'autobrr/autobrr' || github.event_name != 'pull_request' }} + if: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' }} runs-on: ubuntu-latest needs: [docker, test] steps: