Merge pull request #2142 from kalsi-avneet/topic/no-nightly-on-forks

Docker nightly build - Do not run if cannot log in to dockerhub
This commit is contained in:
Peter Bieringer
2026-06-07 08:26:10 +03:00
committed by GitHub

View File

@@ -14,6 +14,12 @@ env:
jobs:
build-and-push-image:
runs-on: ubuntu-latest
# Avoid running nightly build if dockerhub credentials are absent
# This should prevent triggering nightly builds on forks
if: |
github.event_name != 'schedule' ||
vars.DOCKERHUB_ORGNAME != ''
permissions:
contents: read
packages: write