File tree Expand file tree Collapse file tree 1 file changed +23
-7
lines changed Expand file tree Collapse file tree 1 file changed +23
-7
lines changed Original file line number Diff line number Diff line change 2
2
stages :
3
3
- build
4
4
- unit-tests
5
- - deploy-part1
6
5
- moderator
6
+ - deploy-part1
7
7
- deploy-part2
8
8
- deploy-part3
9
9
- deploy-special
@@ -65,14 +65,30 @@ before_script:
65
65
66
66
# For failfast, at least 1 job must be defined in .gitlab-ci.yml
67
67
# Premoderated with manual actions
68
- ci-authorized :
69
- extends : .job
68
+ ci-not-authorized :
70
69
stage : moderator
70
+ before_script : []
71
+ after_script : []
72
+ rules :
73
+ # LGTM or ok-to-test labels
74
+ - if : $PR_LABELS =~ /.*,(lgtm|ok-to-test).*|^(lgtm|ok-to-test).*/i
75
+ variables :
76
+ CI_OK_TO_TEST : ' 0'
77
+ when : always
78
+ - if : $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "trigger"
79
+ variables :
80
+ CI_OK_TO_TEST : ' 0'
81
+ - if : $CI_COMMIT_BRANCH == "master"
82
+ variables :
83
+ CI_OK_TO_TEST : ' 0'
84
+ - when : always
85
+ variables :
86
+ CI_OK_TO_TEST : ' 1'
71
87
script :
72
- - /bin/sh scripts/premoderator.sh
73
- except : ['triggers', 'master']
74
- # Disable ci moderator
75
- only : []
88
+ - exit $CI_OK_TO_TEST
89
+ tags :
90
+ - light
91
+
76
92
77
93
include :
78
94
- .gitlab-ci/build.yml
You can’t perform that action at this time.
0 commit comments