build(github): remove hard coded autobrr/autobrr (#1365)

* feat(ci): push to PRs image repository.

* always publish

* brand new eyes

* really.

* k. whatever

* .
This commit is contained in:
Kyle Sanderson 2024-01-28 11:50:06 -08:00 committed by GitHub
parent f979b9adc8
commit 9db5a8b116
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: