Skip to content

Commit

Permalink
update-cel-expressions (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonPowr authored Nov 27, 2024
1 parent de1af4d commit 96ad338
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .tekton/createctconfig-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +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 == "main" && ( ".tekton/createctconfig-pull-request.yaml".pathChanged() || "Dockerfile.createctconfig.rh".pathChanged() || "Makefile".pathChanged() || "go.mod".pathChanged() || "cmd/ctlog/createctconfig/*".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main" &&
( ".tekton/createctconfig-pull-request.yaml".pathChanged() || "Dockerfile.createctconfig.rh".pathChanged() || "Makefile".pathChanged() || "go.mod".pathChanged() || "cmd/ctlog/createctconfig/*".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: scaffold
Expand Down
3 changes: 2 additions & 1 deletion .tekton/createctconfig-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +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 == "main"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" &&
( ".tekton/createctconfig-push.yaml".pathChanged() || "Dockerfile.createctconfig.rh".pathChanged() || "Makefile".pathChanged() || "go.mod".pathChanged() || "cmd/ctlog/createctconfig/*".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: scaffold
Expand Down
3 changes: 2 additions & 1 deletion .tekton/ctlog-managectroots-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +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 == "main" && ( "cmd/ctlog/managectroots/*".pathChanged() || ".tekton/ctlog-managectroots-pull-request.yaml".pathChanged() || "Dockerfile.ctlog-managectroots.rh".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main" &&
( "cmd/ctlog/managectroots/*".pathChanged() || ".tekton/ctlog-managectroots-pull-request.yaml".pathChanged() || "Dockerfile.ctlog-managectroots.rh".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: scaffold
Expand Down
3 changes: 2 additions & 1 deletion .tekton/ctlog-managectroots-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +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 == "main"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" &&
( "cmd/ctlog/managectroots/*".pathChanged() || ".tekton/ctlog-managectroots-push.yaml".pathChanged() || "Dockerfile.ctlog-managectroots.rh".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: scaffold
Expand Down
3 changes: 2 additions & 1 deletion .tekton/fulcio-createcerts-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +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 == "main" && ( ".tekton/fulcio-createcerts-pull-request.yaml".pathChanged() || "cmd/fulcio/createcerts/*".pathChanged() || "Dockerfile.fulcio-createcerts.rh".pathChanged() || "Makefile".pathChanged() || "go.mod".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main" &&
( ".tekton/fulcio-createcerts-pull-request.yaml".pathChanged() || "cmd/fulcio/createcerts/*".pathChanged() || "Dockerfile.fulcio-createcerts.rh".pathChanged() || "Makefile".pathChanged() || "go.mod".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: scaffold
Expand Down
3 changes: 2 additions & 1 deletion .tekton/fulcio-createcerts-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +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 == "main"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" &&
( ".tekton/fulcio-createcerts-push.yaml".pathChanged() || "cmd/fulcio/createcerts/*".pathChanged() || "Dockerfile.fulcio-createcerts.rh".pathChanged() || "Makefile".pathChanged() || "go.mod".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: scaffold
Expand Down
3 changes: 2 additions & 1 deletion .tekton/trillian-createdb-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +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 == "main" && ( "cmd/trillian/createdb/***".pathChanged() || ".tekton/trillian-createdb-pull-request.yaml".pathChanged() || "Dockerfile.trillian-createdb.rh".pathChanged() || "config/trillian/createdb/***".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main" &&
( "cmd/trillian/createdb/***".pathChanged() || ".tekton/trillian-createdb-pull-request.yaml".pathChanged() || "Dockerfile.trillian-createdb.rh".pathChanged() || "config/trillian/createdb/***".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: scaffold
Expand Down
3 changes: 2 additions & 1 deletion .tekton/trillian-createdb-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +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 == "main"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" &&
( "cmd/trillian/createdb/***".pathChanged() || ".tekton/trillian-createdb-push.yaml".pathChanged() || "Dockerfile.trillian-createdb.rh".pathChanged() || "config/trillian/createdb/***".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: scaffold
Expand Down
3 changes: 2 additions & 1 deletion .tekton/trillian-createtree-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +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 == "main" && ( "cmd/trillian/createtree/*".pathChanged() || ".tekton/trillian-createtree-pull-request.yaml".pathChanged() || "Dockerfile.trillian-createtree.rh".pathChanged() || "config/rekor/createtree/*".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main" &&
( "cmd/trillian/createtree/*".pathChanged() || ".tekton/trillian-createtree-pull-request.yaml".pathChanged() || "Dockerfile.trillian-createtree.rh".pathChanged() || "config/rekor/createtree/*".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: scaffold
Expand Down
3 changes: 2 additions & 1 deletion .tekton/trillian-createtree-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +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 == "main"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" &&
( "cmd/trillian/createtree/*".pathChanged() || ".tekton/trillian-createtree-push.yaml".pathChanged() || "Dockerfile.trillian-createtree.rh".pathChanged() || "config/rekor/createtree/*".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: scaffold
Expand Down
3 changes: 2 additions & 1 deletion .tekton/tuf-server-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +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 == "main" && ( "cmd/tuf/server/*".pathChanged() || ".tekton/tuf-server-pull-request.yaml".pathChanged() || "Dockerfile.tuf-server.rh".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main" &&
( "cmd/tuf/server/*".pathChanged() || ".tekton/tuf-server-pull-request.yaml".pathChanged() || "Dockerfile.tuf-server.rh".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: scaffold
Expand Down
3 changes: 2 additions & 1 deletion .tekton/tuf-server-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +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 == "main"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" &&
( "cmd/tuf/server/*".pathChanged() || ".tekton/tuf-server-push.yaml".pathChanged() || "Dockerfile.tuf-server.rh".pathChanged() || "go.mod".pathChanged() || "Makefile".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
build.appstudio.openshift.io/build-nudge-files: "controllers/constants/*"
creationTimestamp: null
labels:
Expand Down

0 comments on commit 96ad338

Please sign in to comment.