Skip to content

Commit

Permalink
optimizing build conditions to reduce RHTAP workloads
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory-Pereira committed Nov 28, 2023
1 parent b9756a1 commit 2e6e9a8
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .tekton/cloudsqlproxy-0-6-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .tekton/cloudsqlproxy-0-6-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .tekton/creatctconfig-0-6-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .tekton/creatctconfig-0-6-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .tekton/createdb-0-6-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .tekton/createdb-0-6-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .tekton/createtree-0-6-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .tekton/createtree-0-6-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .tekton/ct-server-0-6-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .tekton/ct-server-0-6-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .tekton/ctlog-managectroots-0-6-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .tekton/ctlog-managectroots-0-6-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .tekton/ctlog-verify-fulcio-0-6-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .tekton/ctlog-verify-fulcio-0-6-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .tekton/tuf-server-0-6-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .tekton/tuf-server-0-6-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e6e9a8

Please sign in to comment.