only push docker images and docs when a pr does not come from a fork

This commit is contained in:
maxDorninger
2025-11-01 16:29:05 +01:00
parent 32aae83875
commit 221a4c3506
3 changed files with 6 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ jobs:
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
with:
registry: ghcr.io
username: ${{ github.actor }}
@@ -71,7 +72,7 @@ jobs:
context: ./metadata_relay
file: ./metadata_relay/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
push: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |