Skip to content

Commit d195a5f

Browse files
committed
Save CI resources by running some jobs only for code changes
On-behalf-of: SAP <[email protected]> Signed-off-by: Marvin Beckers <[email protected]>
1 parent c7b7607 commit d195a5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.prow.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ presubmits:
3636
- name: pull-kcp-operator-build-image
3737
always_run: true
3838
decorate: true
39+
run_if_changed: "(Dockerfile|Makefile|.prow.yaml|go.mod|go.sum|cmd|internal|sdk|hack)"
3940
clone_uri: "https://github.com/kcp-dev/kcp-operator"
4041
labels:
4142
preset-goproxy: "true"
@@ -58,6 +59,7 @@ presubmits:
5859
- name: pull-kcp-operator-test
5960
always_run: true
6061
decorate: true
62+
run_if_changed: "(Dockerfile|Makefile|.prow.yaml|go.mod|go.sum|cmd|internal|sdk|hack|test)"
6163
clone_uri: "https://github.com/kcp-dev/kcp-operator"
6264
labels:
6365
preset-goproxy: "true"
@@ -78,6 +80,7 @@ presubmits:
7880
- name: pull-kcp-operator-test-e2e
7981
always_run: true
8082
decorate: true
83+
run_if_changed: "(Dockerfile|Makefile|.prow.yaml|go.mod|go.sum|cmd|internal|sdk|hack|test)"
8184
clone_uri: "https://github.com/kcp-dev/kcp-operator"
8285
labels:
8386
preset-goproxy: "true"
@@ -97,6 +100,7 @@ presubmits:
97100
- name: pull-kcp-operator-test-e2e-canary
98101
always_run: true
99102
decorate: true
103+
run_if_changed: "(Dockerfile|Makefile|.prow.yaml|go.mod|go.sum|cmd|internal|sdk|hack|test)"
100104
optional: true
101105
clone_uri: "https://github.com/kcp-dev/kcp-operator"
102106
labels:

0 commit comments

Comments
 (0)