Skip to content

Commit e4f70c3

Browse files
authored
Merge pull request #2142 from kalsi-avneet/topic/no-nightly-on-forks
Docker nightly build - Do not run if cannot log in to dockerhub
2 parents f985d09 + 6b1ffe4 commit e4f70c3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ env:
1414
jobs:
1515
build-and-push-image:
1616
runs-on: ubuntu-latest
17+
18+
# Avoid running nightly build if dockerhub credentials are absent
19+
# This should prevent triggering nightly builds on forks
20+
if: |
21+
github.event_name != 'schedule' ||
22+
vars.DOCKERHUB_ORGNAME != ''
1723
permissions:
1824
contents: read
1925
packages: write

0 commit comments

Comments
 (0)