Skip to content

Commit dbf4720

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 dbf4720

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.prow.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ presubmits:
3434
cpu: 2
3535

3636
- name: pull-kcp-operator-build-image
37-
always_run: true
3837
decorate: true
38+
run_if_changed: "(Dockerfile|Makefile|.prow.yaml|go.mod|go.sum|cmd|internal|sdk|hack)"
39+
optional: false
3940
clone_uri: "https://github.com/kcp-dev/kcp-operator"
4041
labels:
4142
preset-goproxy: "true"
@@ -56,8 +57,9 @@ presubmits:
5657
cpu: 1
5758

5859
- name: pull-kcp-operator-test
59-
always_run: true
6060
decorate: true
61+
run_if_changed: "(Dockerfile|Makefile|.prow.yaml|go.mod|go.sum|cmd|internal|sdk|hack|test)"
62+
optional: false
6163
clone_uri: "https://github.com/kcp-dev/kcp-operator"
6264
labels:
6365
preset-goproxy: "true"
@@ -76,8 +78,9 @@ presubmits:
7678
cpu: 2
7779

7880
- name: pull-kcp-operator-test-e2e
79-
always_run: true
8081
decorate: true
82+
run_if_changed: "(Dockerfile|Makefile|.prow.yaml|go.mod|go.sum|cmd|internal|sdk|hack|test)"
83+
optional: false
8184
clone_uri: "https://github.com/kcp-dev/kcp-operator"
8285
labels:
8386
preset-goproxy: "true"
@@ -95,8 +98,8 @@ presubmits:
9598
privileged: true
9699

97100
- name: pull-kcp-operator-test-e2e-canary
98-
always_run: true
99101
decorate: true
102+
run_if_changed: "(Dockerfile|Makefile|.prow.yaml|go.mod|go.sum|cmd|internal|sdk|hack|test)"
100103
optional: true
101104
clone_uri: "https://github.com/kcp-dev/kcp-operator"
102105
labels:

0 commit comments

Comments
 (0)