check for fork before pushing a container to GHCR

This commit is contained in:
Daniel Markstedt
2025-11-23 14:31:34 +01:00
parent 8a734911c3
commit a1f784f919
+8 -1
View File
@@ -72,7 +72,14 @@ jobs:
run: docker compose -f docker-compose.ci.yml run pytest -v
- name: Push backend image to container registry
if: (success() || failure()) && github.actor != 'dependabot[bot]' && github.actor != 'dependabot'
if: |
(success() || failure())
&& github.actor != 'dependabot[bot]'
&& github.actor != 'dependabot'
&& (
github.event_name != 'pull_request'
|| github.event.pull_request.head.repo.full_name == github.repository
)
run: docker compose -f docker-compose.ci.yml push backend
- name: Upload test artifacts