Merge branch 'ci/disable_dev_push_pipelines' into 'master'

CI: Disable pipelines generated by push on dev branches

See merge request espressif/esp-idf!10609
pull/5682/merge
Anton Maklakov 2020-09-29 11:27:11 +08:00
commit ead20bc1c9
1 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -9,6 +9,18 @@ stages:
- deploy - deploy
- post_deploy - post_deploy
# pipelines will not be created in such two cases:
# 1. MR push
# 2. push not on "master/release" branches, and not tagged
# This behavior could be changed after the `rules: changes` feature is implemented
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_REF_NAME != "master" && $CI_COMMIT_BRANCH !~ /^release\/v/ && $CI_COMMIT_TAG !~ /^v\d+\.\d+(\.\d+)?($|-)/ && $CI_PIPELINE_SOURCE == "push"'
when: never
- when: always
variables: variables:
# System environment # System environment