File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Pipelines run only for MRs and manual (web/API) runs; branch pushes create none.
2+ workflow :
3+ rules :
4+ - if : $CI_PIPELINE_SOURCE == 'merge_request_event'
5+ - if : $CI_PIPELINE_SOURCE == 'api'
6+ - if : $CI_PIPELINE_SOURCE == 'web'
7+
8+ # Extend to run in every allowed pipeline; rule-less jobs drop out of MR pipelines.
9+ .all-pipelines :
10+ rules :
11+ - when : on_success
12+
113stages :
214 - lint
315 - security
Original file line number Diff line number Diff line change 11build :
22 stage : build
33 needs : []
4- rules :
5- - if : $CI_PIPELINE_SOURCE == 'merge_request_event'
6- - if : $CI_PIPELINE_SOURCE == 'push'
4+ extends : .all-pipelines
75 image :
86 name : $HAPROXY_REGISTRY_GO/golang:latest-alpine
97 entrypoint : [""]
Original file line number Diff line number Diff line change 11tidy :
22 stage : lint
33 needs : []
4- rules :
5- - if : $CI_PIPELINE_SOURCE == 'merge_request_event'
6- - if : $CI_PIPELINE_SOURCE == 'push'
4+ extends : .all-pipelines
75 image :
86 name : $HAPROXY_REGISTRY_GO/golang:latest-alpine
97 entrypoint : [""]
3028format :
3129 stage : lint
3230 needs : []
33- rules :
34- - if : $CI_PIPELINE_SOURCE == 'merge_request_event'
35- - if : $CI_PIPELINE_SOURCE == 'push'
31+ extends : .all-pipelines
3632 image :
3733 name : $HAPROXY_REGISTRY_GO/golang:latest-alpine
3834 entrypoint : [""]
@@ -60,9 +56,7 @@ format:
6056lint :
6157 stage : lint
6258 needs : []
63- rules :
64- - if : $CI_PIPELINE_SOURCE == 'merge_request_event'
65- - if : $CI_PIPELINE_SOURCE == 'push'
59+ extends : .all-pipelines
6660 image :
6761 name : $HAPROXY_REGISTRY_GO/golang:latest-alpine
6862 entrypoint : [""]
@@ -91,6 +85,7 @@ commit-policy:
9185 needs : []
9286 variables :
9387 GIT_DEPTH : " 0"
88+ # MR-only: needs an MR commit range.
9489 rules :
9590 - if : $CI_PIPELINE_SOURCE == 'merge_request_event'
9691 image :
Original file line number Diff line number Diff line change 11license :
22 stage : security
33 needs : ["tidy"]
4- rules :
5- - if : $CI_PIPELINE_SOURCE == 'merge_request_event'
6- - if : $CI_PIPELINE_SOURCE == 'push'
4+ extends : .all-pipelines
75 image :
86 name : $HAPROXY_REGISTRY_GO/golang:latest-alpine
97 entrypoint : [""]
@@ -27,9 +25,7 @@ license:
2725govulncheck :
2826 stage : security
2927 needs : []
30- rules :
31- - if : $CI_PIPELINE_SOURCE == 'merge_request_event'
32- - if : $CI_PIPELINE_SOURCE == 'push'
28+ extends : .all-pipelines
3329 image :
3430 name : $HAPROXY_REGISTRY_GO/golang:latest-alpine
3531 entrypoint : [""]
Original file line number Diff line number Diff line change 44test-e2e :
55 stage : test
66 needs : []
7- rules :
8- - if : $CI_PIPELINE_SOURCE == 'merge_request_event'
9- - if : $CI_PIPELINE_SOURCE == 'push'
7+ extends : .all-pipelines
108 image : $CI_REGISTRY_GO/docker:$DOCKER_VERSION-go$GO_VERSION
119 services :
1210 - name : $CI_REGISTRY_GO/docker:$DOCKER_VERSION-dind
@@ -40,9 +38,7 @@ test-e2e:
4038test :
4139 stage : test
4240 needs : []
43- rules :
44- - if : $CI_PIPELINE_SOURCE == 'merge_request_event'
45- - if : $CI_PIPELINE_SOURCE == 'push'
41+ extends : .all-pipelines
4642 image :
4743 name : $HAPROXY_REGISTRY_GO/golang:latest-alpine
4844 entrypoint : [""]
You can’t perform that action at this time.
0 commit comments