Skip build jobs for scheduled pipeline

This commit is contained in:
Andrejs Cunskis 2022-09-28 18:52:01 +03:00
parent fc0ad007ec
commit c5b0b09a1e
No known key found for this signature in database
GPG key ID: 87CB75083F227241

View file

@ -25,6 +25,8 @@
script:
- ./scripts/lib/custom-docker-build
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_SERVER_HOST == "gitlab.com"'
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_SERVER_HOST == "gitlab.com"'
variables: