From 44c3e1ee21e050632ac92308d0c9b329199450a7 Mon Sep 17 00:00:00 2001 From: Watson Yuuma Sato Date: Thu, 11 Dec 2025 12:57:45 +0100 Subject: [PATCH] Separate build trigger for operator and bundle Let's not build both images all the time. This leads to two snapshots whenever there is a build, and makes it a bit more difficult to find the correct one for release. --- .tekton/file-integrity-operator-bundle-dev-pull-request.yaml | 2 +- .tekton/file-integrity-operator-bundle-dev-push.yaml | 2 +- .tekton/file-integrity-operator-dev-pull-request.yaml | 2 +- .tekton/file-integrity-operator-dev-push.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.tekton/file-integrity-operator-bundle-dev-pull-request.yaml b/.tekton/file-integrity-operator-bundle-dev-pull-request.yaml index 59f466ef0..0e34b9390 100644 --- a/.tekton/file-integrity-operator-bundle-dev-pull-request.yaml +++ b/.tekton/file-integrity-operator-bundle-dev-pull-request.yaml @@ -8,7 +8,7 @@ metadata: build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/cancel-in-progress: "true" pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "master" + pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "master" && files.all.all(x, x.matches('^bundle/') || x.matches('^bundle-hack/') || x.matches('^bundle\\.openshift\\.Dockerfile') || x.matches('^\\.tekton/file-integrity-operator-bundle-dev-.*\\.yaml')) creationTimestamp: labels: appstudio.openshift.io/application: file-integrity-operator-dev diff --git a/.tekton/file-integrity-operator-bundle-dev-push.yaml b/.tekton/file-integrity-operator-bundle-dev-push.yaml index fe5cef5ae..d127695cd 100644 --- a/.tekton/file-integrity-operator-bundle-dev-push.yaml +++ b/.tekton/file-integrity-operator-bundle-dev-push.yaml @@ -7,7 +7,7 @@ metadata: build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "master" + pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "master" && files.all.all(x, x.matches('^bundle/') || x.matches('^bundle-hack/') || x.matches('^bundle\\.openshift\\.Dockerfile') || x.matches('^\\.tekton/file-integrity-operator-bundle-dev-.*\\.yaml')) creationTimestamp: labels: appstudio.openshift.io/application: file-integrity-operator-dev diff --git a/.tekton/file-integrity-operator-dev-pull-request.yaml b/.tekton/file-integrity-operator-dev-pull-request.yaml index 2ca6ec275..1711d40e2 100644 --- a/.tekton/file-integrity-operator-dev-pull-request.yaml +++ b/.tekton/file-integrity-operator-dev-pull-request.yaml @@ -8,7 +8,7 @@ metadata: build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/cancel-in-progress: "true" pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "master" + pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "master" && !files.all.all(x, x.matches('^bundle/') || x.matches('^bundle-hack/') || x.matches('^bundle\\.openshift\\.Dockerfile') || x.matches('^\\.tekton/file-integrity-operator-bundle-dev-.*\\.yaml')) creationTimestamp: labels: appstudio.openshift.io/application: file-integrity-operator-dev diff --git a/.tekton/file-integrity-operator-dev-push.yaml b/.tekton/file-integrity-operator-dev-push.yaml index 7428637b1..c2ae9d22f 100644 --- a/.tekton/file-integrity-operator-dev-push.yaml +++ b/.tekton/file-integrity-operator-dev-push.yaml @@ -8,7 +8,7 @@ metadata: build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "master" + pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "master" && !files.all.all(x, x.matches('^bundle/') || x.matches('^bundle-hack/') || x.matches('^bundle\\.openshift\\.Dockerfile') || x.matches('^\\.tekton/file-integrity-operator-bundle-dev-.*\\.yaml')) creationTimestamp: labels: appstudio.openshift.io/application: file-integrity-operator-dev