From 2e6e9a8c13d1220909ecbc0ae103343b567828af Mon Sep 17 00:00:00 2001 From: greg pereira Date: Tue, 28 Nov 2023 13:40:29 -0800 Subject: [PATCH] optimizing build conditions to reduce RHTAP workloads --- .tekton/cloudsqlproxy-0-6-pull-request.yaml | 4 ++-- .tekton/cloudsqlproxy-0-6-push.yaml | 4 ++-- .tekton/creatctconfig-0-6-pull-request.yaml | 4 ++-- .tekton/creatctconfig-0-6-push.yaml | 4 ++-- .tekton/createdb-0-6-pull-request.yaml | 4 ++-- .tekton/createdb-0-6-push.yaml | 4 ++-- .tekton/createtree-0-6-pull-request.yaml | 4 ++-- .tekton/createtree-0-6-push.yaml | 4 ++-- .tekton/ct-server-0-6-pull-request.yaml | 4 ++-- .tekton/ct-server-0-6-push.yaml | 4 ++-- .tekton/ctlog-managectroots-0-6-pull-request.yaml | 4 ++-- .tekton/ctlog-managectroots-0-6-push.yaml | 4 ++-- .tekton/ctlog-verify-fulcio-0-6-pull-request.yaml | 4 ++-- .tekton/ctlog-verify-fulcio-0-6-push.yaml | 4 ++-- .tekton/tuf-server-0-6-pull-request.yaml | 4 ++-- .tekton/tuf-server-0-6-push.yaml | 4 ++-- 16 files changed, 32 insertions(+), 32 deletions(-) diff --git a/.tekton/cloudsqlproxy-0-6-pull-request.yaml b/.tekton/cloudsqlproxy-0-6-pull-request.yaml index bac88de0a..d2452e151 100644 --- a/.tekton/cloudsqlproxy-0-6-pull-request.yaml +++ b/.tekton/cloudsqlproxy-0-6-pull-request.yaml @@ -7,8 +7,8 @@ metadata: build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch - == "redhat-v0.6" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull_request" && target_branch == "redhat-v0.6" && ( "cmd/cloudsqlproxy/*".pathChanged() || ".tekton/cloudsqlproxy-*-pull-request.yaml".pathChanged() || "/Dockerfile.cloudsqlproxy".pathChanged() || "Makefile".pathChanged() || "go.mod".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: trillian-1-0-gamma diff --git a/.tekton/cloudsqlproxy-0-6-push.yaml b/.tekton/cloudsqlproxy-0-6-push.yaml index 44386cdb7..30a3a26ee 100644 --- a/.tekton/cloudsqlproxy-0-6-push.yaml +++ b/.tekton/cloudsqlproxy-0-6-push.yaml @@ -6,8 +6,8 @@ metadata: build.appstudio.redhat.com/commit_sha: '{{revision}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch - == "redhat-v0.6" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull_request" && target_branch == "redhat-v0.6" && ( "cmd/cloudsqlproxy/*".pathChanged() || ".tekton/cloudsqlproxy-*-push.yaml".pathChanged() || "/Dockerfile.cloudsqlproxy".pathChanged() || "Makefile".pathChanged() || "go.mod".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: trillian-1-0-gamma diff --git a/.tekton/creatctconfig-0-6-pull-request.yaml b/.tekton/creatctconfig-0-6-pull-request.yaml index 55e48ad4d..ebe1d896e 100644 --- a/.tekton/creatctconfig-0-6-pull-request.yaml +++ b/.tekton/creatctconfig-0-6-pull-request.yaml @@ -7,8 +7,8 @@ metadata: build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch - == "redhat-v0.6" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "push" && target_branch == "redhat-v0.6" && ( "cmd/ctlog/createctconfig/*".pathChanged() || ".tekton/createctconfig-*-pull-request.yaml".pathChanged() || "/Dockerfile.createctconfig".pathChanged() || "Makefile".pathChanged() || "go.mod".pathChanged() || "config/ctlog/certs/*".pathChanged()) creationTimestamp: null labels: appstudio.openshift.io/application: scaffold-1-0-gamma diff --git a/.tekton/creatctconfig-0-6-push.yaml b/.tekton/creatctconfig-0-6-push.yaml index 090b54625..9389d3b74 100644 --- a/.tekton/creatctconfig-0-6-push.yaml +++ b/.tekton/creatctconfig-0-6-push.yaml @@ -6,8 +6,8 @@ metadata: build.appstudio.redhat.com/commit_sha: '{{revision}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch - == "redhat-v0.6" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "push" && target_branch == "redhat-v0.6" && ( "cmd/ctlog/createctconfig/*".pathChanged() || ".tekton/createctconfig-*-push.yaml".pathChanged() || "/Dockerfile.createctconfig".pathChanged() || "Makefile".pathChanged() || "go.mod".pathChanged() || "config/ctlog/certs/*".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: scaffold-1-0-gamma diff --git a/.tekton/createdb-0-6-pull-request.yaml b/.tekton/createdb-0-6-pull-request.yaml index af7c5881a..9c51873a8 100644 --- a/.tekton/createdb-0-6-pull-request.yaml +++ b/.tekton/createdb-0-6-pull-request.yaml @@ -7,8 +7,8 @@ metadata: build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch - == "redhat-v0.6" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull_request" && target_branch == "redhat-v0.6" && ( "cmd/trillian/createdb/*".pathChanged() || ".tekton/createdb-*-pull-request.yaml".pathChanged() || "/Dockerfile.createdb".pathChanged() || "config/trillian/createdb/*".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: trillian-1-0-gamma diff --git a/.tekton/createdb-0-6-push.yaml b/.tekton/createdb-0-6-push.yaml index 929a9a27e..a9f5a4ad5 100644 --- a/.tekton/createdb-0-6-push.yaml +++ b/.tekton/createdb-0-6-push.yaml @@ -6,8 +6,8 @@ metadata: build.appstudio.redhat.com/commit_sha: '{{revision}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch - == "redhat-v0.6" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull_request" && target_branch == "redhat-v0.6" && ( "cmd/trillian/createdb/*".pathChanged() || ".tekton/createdb-*-push.yaml".pathChanged() || "/Dockerfile.createdb".pathChanged() || "config/trillian/createdb/*".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: trillian-1-0-gamma diff --git a/.tekton/createtree-0-6-pull-request.yaml b/.tekton/createtree-0-6-pull-request.yaml index 0bf89c92d..346b07ade 100644 --- a/.tekton/createtree-0-6-pull-request.yaml +++ b/.tekton/createtree-0-6-pull-request.yaml @@ -7,8 +7,8 @@ metadata: build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch - == "redhat-v0.6" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull_request" && target_branch == "redhat-v0.6" && ( "cmd/trillian/createtree/*".pathChanged() || ".tekton/createtree-*-pull-request.yaml".pathChanged() || "/Dockerfile.createtree".pathChanged() || "config/rekor/createtree/*".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: trillian-1-0-gamma diff --git a/.tekton/createtree-0-6-push.yaml b/.tekton/createtree-0-6-push.yaml index a0af83a10..82d0aabf1 100644 --- a/.tekton/createtree-0-6-push.yaml +++ b/.tekton/createtree-0-6-push.yaml @@ -6,8 +6,8 @@ metadata: build.appstudio.redhat.com/commit_sha: '{{revision}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch - == "redhat-v0.6" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull_request" && target_branch == "redhat-v0.6" && ( "cmd/trillian/createtree/*".pathChanged() || ".tekton/createtree-*-push.yaml".pathChanged() || "/Dockerfile.createtree".pathChanged() || "config/rekor/createtree/*".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: trillian-1-0-gamma diff --git a/.tekton/ct-server-0-6-pull-request.yaml b/.tekton/ct-server-0-6-pull-request.yaml index c9e89e9a7..021e269d8 100644 --- a/.tekton/ct-server-0-6-pull-request.yaml +++ b/.tekton/ct-server-0-6-pull-request.yaml @@ -7,8 +7,8 @@ metadata: build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch - == "redhat-v0.6" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull_request" && target_branch == "redhat-v0.6" && ( ".tekton/ct-server-*-pull-request.yaml".pathChanged() || "/Dockerfile.ct-server".pathChanged() || "hack/build-assets/certificate-transparency-go-1.1.6.tar.gz".pathChanged ) creationTimestamp: null labels: appstudio.openshift.io/application: scaffold-1-0-gamma diff --git a/.tekton/ct-server-0-6-push.yaml b/.tekton/ct-server-0-6-push.yaml index 17e302a84..6df41c241 100644 --- a/.tekton/ct-server-0-6-push.yaml +++ b/.tekton/ct-server-0-6-push.yaml @@ -6,8 +6,8 @@ metadata: build.appstudio.redhat.com/commit_sha: '{{revision}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch - == "redhat-v0.6" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull_request" && target_branch == "redhat-v0.6" && ( ".tekton/ct-server-*-push.yaml".pathChanged() || "/Dockerfile.ct-server".pathChanged() || "hack/build-assets/certificate-transparency-go-1.1.6.tar.gz".pathChanged ) creationTimestamp: null labels: appstudio.openshift.io/application: scaffold-1-0-gamma diff --git a/.tekton/ctlog-managectroots-0-6-pull-request.yaml b/.tekton/ctlog-managectroots-0-6-pull-request.yaml index d97ab7d24..caa4ebb9e 100644 --- a/.tekton/ctlog-managectroots-0-6-pull-request.yaml +++ b/.tekton/ctlog-managectroots-0-6-pull-request.yaml @@ -7,8 +7,8 @@ metadata: build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch - == "redhat-v0.6" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull-request" && target_branch == "redhat-v0.6" && ( "cmd/ctlog/managectroots/*".pathChanged() || ".tekton/ctlog-managectroots-*-pull-request.yaml".pathChanged() || "/Dockerfile.ctlog-managectroots".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: scaffold-1-0-gamma diff --git a/.tekton/ctlog-managectroots-0-6-push.yaml b/.tekton/ctlog-managectroots-0-6-push.yaml index 6c6b31bbc..f20d88ee2 100644 --- a/.tekton/ctlog-managectroots-0-6-push.yaml +++ b/.tekton/ctlog-managectroots-0-6-push.yaml @@ -6,8 +6,8 @@ metadata: build.appstudio.redhat.com/commit_sha: '{{revision}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch - == "redhat-v0.6" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull-request" && target_branch == "redhat-v0.6" && ( "cmd/ctlog/managectroots/*".pathChanged() || ".tekton/ctlog-managectroots-*-push.yaml".pathChanged() || "/Dockerfile.ctlog-managectroots".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: scaffold-1-0-gamma diff --git a/.tekton/ctlog-verify-fulcio-0-6-pull-request.yaml b/.tekton/ctlog-verify-fulcio-0-6-pull-request.yaml index 22c41486d..169fa8e4c 100644 --- a/.tekton/ctlog-verify-fulcio-0-6-pull-request.yaml +++ b/.tekton/ctlog-verify-fulcio-0-6-pull-request.yaml @@ -7,8 +7,8 @@ metadata: build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch - == "redhat-v0.6" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull_request" && target_branch == "redhat-v0.6" && ( "config/fulcio/fulcio/*".pathChanged() || "cmd/ctlog/verifyfulcio/*".pathChanged() || ".tekton/ctlog-verify-fulcio-*-pull-request.yaml".pathChanged() || "/Dockerfile.ctlog-verifyfulcio".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: scaffold-1-0-gamma diff --git a/.tekton/ctlog-verify-fulcio-0-6-push.yaml b/.tekton/ctlog-verify-fulcio-0-6-push.yaml index 2b0ec0245..a1fe8da07 100644 --- a/.tekton/ctlog-verify-fulcio-0-6-push.yaml +++ b/.tekton/ctlog-verify-fulcio-0-6-push.yaml @@ -6,8 +6,8 @@ metadata: build.appstudio.redhat.com/commit_sha: '{{revision}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch - == "redhat-v0.6" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull_request" && target_branch == "redhat-v0.6" && ( "config/fulcio/fulcio/*".pathChanged() || "cmd/ctlog/verifyfulcio/*".pathChanged() || ".tekton/ctlog-verify-fulcio-*-push.yaml".pathChanged() || "/Dockerfile.ctlog-verifyfulcio".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: scaffold-1-0-gamma diff --git a/.tekton/tuf-server-0-6-pull-request.yaml b/.tekton/tuf-server-0-6-pull-request.yaml index a18cc4777..bf8a75fe9 100644 --- a/.tekton/tuf-server-0-6-pull-request.yaml +++ b/.tekton/tuf-server-0-6-pull-request.yaml @@ -7,8 +7,8 @@ metadata: build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch - == "redhat-v0.6" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull_request" && target_branch == "redhat-v0.6" && ( "cmd/tuf/server/*".pathChanged() || ".tekton/tuf-server-*-pull-request.yaml".pathChanged() || "/Dockerfile.tuf-server".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: scaffold-1-0-gamma diff --git a/.tekton/tuf-server-0-6-push.yaml b/.tekton/tuf-server-0-6-push.yaml index 66d715b76..34fd47319 100644 --- a/.tekton/tuf-server-0-6-push.yaml +++ b/.tekton/tuf-server-0-6-push.yaml @@ -6,8 +6,8 @@ metadata: build.appstudio.redhat.com/commit_sha: '{{revision}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch - == "redhat-v0.6" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull_request" && target_branch == "redhat-v0.6" && ( "cmd/tuf/server/*".pathChanged() || ".tekton/tuf-server-*-push.yaml".pathChanged() || "/Dockerfile.tuf-server".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: scaffold-1-0-gamma