Docker nightly build - Do not run if cannot log in to dockerhub

* This is detected by presence of `vars.DOCKERHUB_ORGNAME`
    * `secrets/DOCKERHUB_TOKEN` could not be used
    * Other builds are unaffected
This commit is contained in:
kalsi-avneet
2026-05-24 16:24:24 +00:00
parent 5e926f1385
commit 6b1ffe4ef7

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