diff --git a/.tekton/alertmanager-1-4-pull-request.yaml b/.tekton/alertmanager-1-4-pull-request.yaml index 30ea547e..eb0aa8bb 100644 --- a/.tekton/alertmanager-1-4-pull-request.yaml +++ b/.tekton/alertmanager-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/alertmanager-1-4-pull-request.yaml".pathChanged() || ".tekton/alertmanager-1-4-push.yaml".pathChanged() || "Dockerfile.alertmanager".pathChanged() || diff --git a/.tekton/alertmanager-1-4-push.yaml b/.tekton/alertmanager-1-4-push.yaml index f2426638..01c5cb17 100644 --- a/.tekton/alertmanager-1-4-push.yaml +++ b/.tekton/alertmanager-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/alertmanager-1-4-pull-request.yaml".pathChanged() || ".tekton/alertmanager-1-4-push.yaml".pathChanged() || "Dockerfile.alertmanager".pathChanged() || @@ -45,6 +46,8 @@ spec: value: "true" - name: prefetch-input value: '[{"type": "gomod", "path": "./alertmanager"}]' + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. @@ -115,6 +118,10 @@ spec: description: List of platforms to build the container images on. The available set of values is determined by the configuration of the multi-platform-controller. name: build-platforms type: array + - name: enable-cache-proxy + default: "false" + description: Enable cache proxy configuration + type: string results: - description: "" name: IMAGE_URL diff --git a/.tekton/cluster-health-analyzer-1-4-pull-request.yaml b/.tekton/cluster-health-analyzer-1-4-pull-request.yaml index 07a06ea5..43bc9a37 100644 --- a/.tekton/cluster-health-analyzer-1-4-pull-request.yaml +++ b/.tekton/cluster-health-analyzer-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/cluster-health-analyzer-1-4-pull-request.yaml".pathChanged() || ".tekton/cluster-health-analyzer-1-4-push.yaml".pathChanged() || "Dockerfile.cluster-health-analyzer".pathChanged() || diff --git a/.tekton/cluster-health-analyzer-1-4-push.yaml b/.tekton/cluster-health-analyzer-1-4-push.yaml index a806bbd3..9d20ba87 100644 --- a/.tekton/cluster-health-analyzer-1-4-push.yaml +++ b/.tekton/cluster-health-analyzer-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/cluster-health-analyzer-1-4-pull-request.yaml".pathChanged() || ".tekton/cluster-health-analyzer-1-4-push.yaml".pathChanged() || "Dockerfile.cluster-health-analyzer".pathChanged() || @@ -45,6 +46,8 @@ spec: value: . - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. diff --git a/.tekton/cluster-observability-operator-1-4-pull-request.yaml b/.tekton/cluster-observability-operator-1-4-pull-request.yaml index 78a342be..536eb66a 100644 --- a/.tekton/cluster-observability-operator-1-4-pull-request.yaml +++ b/.tekton/cluster-observability-operator-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/cluster-observability-operator-1-4-pull-request.yaml".pathChanged() || ".tekton/cluster-observability-operator-1-4-push.yaml".pathChanged() || "Dockerfile.obo".pathChanged() || diff --git a/.tekton/cluster-observability-operator-1-4-push.yaml b/.tekton/cluster-observability-operator-1-4-push.yaml index af98681d..d35ac0c2 100644 --- a/.tekton/cluster-observability-operator-1-4-push.yaml +++ b/.tekton/cluster-observability-operator-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/cluster-observability-operator-1-4-pull-request.yaml".pathChanged() || ".tekton/cluster-observability-operator-1-4-push.yaml".pathChanged() || "Dockerfile.obo".pathChanged() || @@ -45,6 +46,8 @@ spec: value: . - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. diff --git a/.tekton/cluster-observability-operator-bundle-1-4-pull-request.yaml b/.tekton/cluster-observability-operator-bundle-1-4-pull-request.yaml index bf83a7aa..f56b2d16 100644 --- a/.tekton/cluster-observability-operator-bundle-1-4-pull-request.yaml +++ b/.tekton/cluster-observability-operator-bundle-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/cluster-observability-operator-bundle-1-4-pull-request.yaml".pathChanged() || ".tekton/cluster-observability-operator-bundle-1-4-push.yaml".pathChanged() || "Dockerfile.bundle".pathChanged() || diff --git a/.tekton/cluster-observability-operator-bundle-1-4-push.yaml b/.tekton/cluster-observability-operator-bundle-1-4-push.yaml index f2e12e59..7979c43b 100644 --- a/.tekton/cluster-observability-operator-bundle-1-4-push.yaml +++ b/.tekton/cluster-observability-operator-bundle-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/cluster-observability-operator-bundle-1-4-pull-request.yaml".pathChanged() || ".tekton/cluster-observability-operator-bundle-1-4-push.yaml".pathChanged() || "Dockerfile.bundle".pathChanged() || @@ -43,6 +44,8 @@ spec: - REGISTRY=registry.redhat.io - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building container images from a Containerfile while reducing network traffic. diff --git a/.tekton/dashboards-console-plugin-1-4-pull-request.yaml b/.tekton/dashboards-console-plugin-1-4-pull-request.yaml index 8fe82331..836c8b8f 100644 --- a/.tekton/dashboards-console-plugin-1-4-pull-request.yaml +++ b/.tekton/dashboards-console-plugin-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/dashboards-console-plugin-1-4-pull-request.yaml".pathChanged() || ".tekton/dashboards-console-plugin-1-4-push.yaml".pathChanged() || "Dockerfile.ui-dashboards".pathChanged() || diff --git a/.tekton/dashboards-console-plugin-1-4-push.yaml b/.tekton/dashboards-console-plugin-1-4-push.yaml index 8f03b8d3..52a646c4 100644 --- a/.tekton/dashboards-console-plugin-1-4-push.yaml +++ b/.tekton/dashboards-console-plugin-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/dashboards-console-plugin-1-4-pull-request.yaml".pathChanged() || ".tekton/dashboards-console-plugin-1-4-push.yaml".pathChanged() || "Dockerfile.ui-dashboards".pathChanged() || @@ -45,6 +46,8 @@ spec: value: . - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. diff --git a/.tekton/distributed-tracing-console-plugin-1-4-pull-request.yaml b/.tekton/distributed-tracing-console-plugin-1-4-pull-request.yaml index d7da01d6..66145074 100644 --- a/.tekton/distributed-tracing-console-plugin-1-4-pull-request.yaml +++ b/.tekton/distributed-tracing-console-plugin-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/distributed-tracing-console-plugin-1-4-pull-request.yaml".pathChanged() || ".tekton/distributed-tracing-console-plugin-1-4-push.yaml".pathChanged() || "Dockerfile.ui-distributed-tracing".pathChanged() || diff --git a/.tekton/distributed-tracing-console-plugin-1-4-push.yaml b/.tekton/distributed-tracing-console-plugin-1-4-push.yaml index fc7afddc..646c754c 100644 --- a/.tekton/distributed-tracing-console-plugin-1-4-push.yaml +++ b/.tekton/distributed-tracing-console-plugin-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/distributed-tracing-console-plugin-1-4-pull-request.yaml".pathChanged() || ".tekton/distributed-tracing-console-plugin-1-4-push.yaml".pathChanged() || "Dockerfile.ui-distributed-tracing".pathChanged() || @@ -45,6 +46,8 @@ spec: value: . - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. diff --git a/.tekton/distributed-tracing-console-plugin-pf4-1-4-pull-request.yaml b/.tekton/distributed-tracing-console-plugin-pf4-1-4-pull-request.yaml index 5ed3f7c4..1db6fe6f 100644 --- a/.tekton/distributed-tracing-console-plugin-pf4-1-4-pull-request.yaml +++ b/.tekton/distributed-tracing-console-plugin-pf4-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/distributed-tracing-console-plugin-pf4-1-4-pull-request.yaml".pathChanged() || ".tekton/distributed-tracing-console-plugin-pf4-1-4-push.yaml".pathChanged() || "Dockerfile.ui-distributed-tracing-pf4".pathChanged() || diff --git a/.tekton/distributed-tracing-console-plugin-pf4-1-4-push.yaml b/.tekton/distributed-tracing-console-plugin-pf4-1-4-push.yaml index a699fb1f..a930f424 100644 --- a/.tekton/distributed-tracing-console-plugin-pf4-1-4-push.yaml +++ b/.tekton/distributed-tracing-console-plugin-pf4-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/distributed-tracing-console-plugin-pf4-1-4-pull-request.yaml".pathChanged() || ".tekton/distributed-tracing-console-plugin-pf4-1-4-push.yaml".pathChanged() || "Dockerfile.ui-distributed-tracing-pf4".pathChanged() || @@ -45,6 +46,8 @@ spec: value: . - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. diff --git a/.tekton/distributed-tracing-console-plugin-pf5-1-4-pull-request.yaml b/.tekton/distributed-tracing-console-plugin-pf5-1-4-pull-request.yaml index cf7151b1..e131a318 100644 --- a/.tekton/distributed-tracing-console-plugin-pf5-1-4-pull-request.yaml +++ b/.tekton/distributed-tracing-console-plugin-pf5-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/distributed-tracing-console-plugin-pf5-1-4-pull-request.yaml".pathChanged() || ".tekton/distributed-tracing-console-plugin-pf5-1-4-push.yaml".pathChanged() || "Dockerfile.ui-distributed-tracing-pf5".pathChanged() || diff --git a/.tekton/distributed-tracing-console-plugin-pf5-1-4-push.yaml b/.tekton/distributed-tracing-console-plugin-pf5-1-4-push.yaml index b0eab7a1..aeb48e6e 100644 --- a/.tekton/distributed-tracing-console-plugin-pf5-1-4-push.yaml +++ b/.tekton/distributed-tracing-console-plugin-pf5-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/distributed-tracing-console-plugin-pf5-1-4-pull-request.yaml".pathChanged() || ".tekton/distributed-tracing-console-plugin-pf5-1-4-push.yaml".pathChanged() || "Dockerfile.ui-distributed-tracing-pf5".pathChanged() || @@ -45,6 +46,8 @@ spec: value: . - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. diff --git a/.tekton/images-mirror-set.yaml b/.tekton/images-mirror-set.yaml index 467f181d..25d622a4 100644 --- a/.tekton/images-mirror-set.yaml +++ b/.tekton/images-mirror-set.yaml @@ -3,10 +3,35 @@ apiVersion: operator.openshift.io/v1alpha1 kind: ImageDigestMirrorSet metadata: name: example-mirror-set + annotations: + pipelinesascode.tekton.dev/on-cel-expression: |- + ((event == ".yaml" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && + (".tekton/images-mirror-set.yaml-pull-request.yaml".pathChanged() || + ".tekton/images-mirror-set.yaml-push.yaml".pathChanged() || + "".pathChanged() || + "".pathChanged()) spec: imageDigestMirrors: - mirrors: - quay.io/my-namespace/valid-repo source: registry.redhat.io/unreleased-image/or-inaccessible-image pipelineSpec: - tasks: [] + tasks: + - name: get-submodule-commit-labels + params: + - name: SOURCE-ARTIFACT + value: $(tasks.clone-repository.results.SOURCE_ARTIFACT) + - name: DOCKERFILE + value: $(params.dockerfile) + runAfter: + - clone-repository + taskRef: + name: get-submodule-commit-labels + params: + - name: build-source-image + value: "true" + - name: enable-cache-proxy + value: "true" + taskRunTemplate: + serviceAccountName: build-pipeline-images-mirror-set.yaml diff --git a/.tekton/korrel8r-1-4-pull-request.yaml b/.tekton/korrel8r-1-4-pull-request.yaml index 283d44df..01364cca 100644 --- a/.tekton/korrel8r-1-4-pull-request.yaml +++ b/.tekton/korrel8r-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/korrel8r-1-4-pull-request.yaml".pathChanged() || ".tekton/korrel8r-1-4-push.yaml".pathChanged() || "Dockerfile.korrel8r".pathChanged() || diff --git a/.tekton/korrel8r-1-4-push.yaml b/.tekton/korrel8r-1-4-push.yaml index 5404bfd6..14c899d4 100644 --- a/.tekton/korrel8r-1-4-push.yaml +++ b/.tekton/korrel8r-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/korrel8r-1-4-pull-request.yaml".pathChanged() || ".tekton/korrel8r-1-4-push.yaml".pathChanged() || "Dockerfile.korrel8r".pathChanged() || @@ -45,6 +46,8 @@ spec: value: . - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. diff --git a/.tekton/logging-console-plugin-1-4-pull-request.yaml b/.tekton/logging-console-plugin-1-4-pull-request.yaml index 602d3763..55136b35 100644 --- a/.tekton/logging-console-plugin-1-4-pull-request.yaml +++ b/.tekton/logging-console-plugin-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/logging-console-plugin-1-4-pull-request.yaml".pathChanged() || ".tekton/logging-console-plugin-1-4-push.yaml".pathChanged() || "Dockerfile.ui-logging".pathChanged() || diff --git a/.tekton/logging-console-plugin-1-4-push.yaml b/.tekton/logging-console-plugin-1-4-push.yaml index 5057e049..e95a879a 100644 --- a/.tekton/logging-console-plugin-1-4-push.yaml +++ b/.tekton/logging-console-plugin-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/logging-console-plugin-1-4-pull-request.yaml".pathChanged() || ".tekton/logging-console-plugin-1-4-push.yaml".pathChanged() || "Dockerfile.ui-logging".pathChanged() || @@ -45,6 +46,8 @@ spec: value: . - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. diff --git a/.tekton/logging-console-plugin-pf4-1-4-pull-request.yaml b/.tekton/logging-console-plugin-pf4-1-4-pull-request.yaml index 859c344a..58b00562 100644 --- a/.tekton/logging-console-plugin-pf4-1-4-pull-request.yaml +++ b/.tekton/logging-console-plugin-pf4-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/logging-console-plugin-pf4-1-4-pull-request.yaml".pathChanged() || ".tekton/logging-console-plugin-pf4-1-4-push.yaml".pathChanged() || "Dockerfile.ui-logging-pf4".pathChanged() || diff --git a/.tekton/logging-console-plugin-pf4-1-4-push.yaml b/.tekton/logging-console-plugin-pf4-1-4-push.yaml index cf3981cb..4e8d3384 100644 --- a/.tekton/logging-console-plugin-pf4-1-4-push.yaml +++ b/.tekton/logging-console-plugin-pf4-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/logging-console-plugin-pf4-1-4-pull-request.yaml".pathChanged() || ".tekton/logging-console-plugin-pf4-1-4-push.yaml".pathChanged() || "Dockerfile.ui-logging-pf4".pathChanged() || @@ -45,6 +46,8 @@ spec: value: . - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. diff --git a/.tekton/monitoring-console-plugin-1-4-pull-request.yaml b/.tekton/monitoring-console-plugin-1-4-pull-request.yaml index c85957a0..41ed4aa9 100644 --- a/.tekton/monitoring-console-plugin-1-4-pull-request.yaml +++ b/.tekton/monitoring-console-plugin-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/monitoring-console-plugin-1-4-pull-request.yaml".pathChanged() || ".tekton/monitoring-console-plugin-1-4-push.yaml".pathChanged() || "Dockerfile.ui-monitoring".pathChanged() || diff --git a/.tekton/monitoring-console-plugin-1-4-push.yaml b/.tekton/monitoring-console-plugin-1-4-push.yaml index 4c32f290..2b8ea33d 100644 --- a/.tekton/monitoring-console-plugin-1-4-push.yaml +++ b/.tekton/monitoring-console-plugin-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/monitoring-console-plugin-1-4-pull-request.yaml".pathChanged() || ".tekton/monitoring-console-plugin-1-4-push.yaml".pathChanged() || "Dockerfile.ui-monitoring".pathChanged() || @@ -45,6 +46,8 @@ spec: value: . - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. diff --git a/.tekton/monitoring-console-plugin-pf5-1-4-pull-request.yaml b/.tekton/monitoring-console-plugin-pf5-1-4-pull-request.yaml index 54e8c721..29f02e2a 100644 --- a/.tekton/monitoring-console-plugin-pf5-1-4-pull-request.yaml +++ b/.tekton/monitoring-console-plugin-pf5-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/monitoring-console-plugin-pf5-1-4-pull-request.yaml".pathChanged() || ".tekton/monitoring-console-plugin-pf5-1-4-push.yaml".pathChanged() || "Dockerfile.ui-monitoring-pf5".pathChanged() || diff --git a/.tekton/monitoring-console-plugin-pf5-1-4-push.yaml b/.tekton/monitoring-console-plugin-pf5-1-4-push.yaml index dea1b665..316f2361 100644 --- a/.tekton/monitoring-console-plugin-pf5-1-4-push.yaml +++ b/.tekton/monitoring-console-plugin-pf5-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/monitoring-console-plugin-pf5-1-4-pull-request.yaml".pathChanged() || ".tekton/monitoring-console-plugin-pf5-1-4-push.yaml".pathChanged() || "Dockerfile.ui-monitoring-pf5".pathChanged() || @@ -45,6 +46,8 @@ spec: value: . - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. diff --git a/.tekton/obo-prometheus-operator-1-4-pull-request.yaml b/.tekton/obo-prometheus-operator-1-4-pull-request.yaml index 6c985367..e8e282e8 100644 --- a/.tekton/obo-prometheus-operator-1-4-pull-request.yaml +++ b/.tekton/obo-prometheus-operator-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/obo-prometheus-operator-1-4-pull-request.yaml".pathChanged() || ".tekton/obo-prometheus-operator-1-4-push.yaml".pathChanged() || "Dockerfile.prom-op".pathChanged() || diff --git a/.tekton/obo-prometheus-operator-1-4-push.yaml b/.tekton/obo-prometheus-operator-1-4-push.yaml index e4e370b9..d5719fcd 100644 --- a/.tekton/obo-prometheus-operator-1-4-push.yaml +++ b/.tekton/obo-prometheus-operator-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/obo-prometheus-operator-1-4-pull-request.yaml".pathChanged() || ".tekton/obo-prometheus-operator-1-4-push.yaml".pathChanged() || "Dockerfile.prom-op".pathChanged() || @@ -45,6 +46,8 @@ spec: value: . - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. diff --git a/.tekton/obo-prometheus-operator-admission-webhook-1-4-pull-request.yaml b/.tekton/obo-prometheus-operator-admission-webhook-1-4-pull-request.yaml index 317c851b..92e8dc44 100644 --- a/.tekton/obo-prometheus-operator-admission-webhook-1-4-pull-request.yaml +++ b/.tekton/obo-prometheus-operator-admission-webhook-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/obo-prometheus-operator-admission-webhook-1-4-pull-request.yaml".pathChanged() || ".tekton/obo-prometheus-operator-admission-webhook-1-4-push.yaml".pathChanged() || "Dockerfile.p-o-admission-webhook".pathChanged() || diff --git a/.tekton/obo-prometheus-operator-admission-webhook-1-4-push.yaml b/.tekton/obo-prometheus-operator-admission-webhook-1-4-push.yaml index 2bff718d..dfc03432 100644 --- a/.tekton/obo-prometheus-operator-admission-webhook-1-4-push.yaml +++ b/.tekton/obo-prometheus-operator-admission-webhook-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/obo-prometheus-operator-admission-webhook-1-4-pull-request.yaml".pathChanged() || ".tekton/obo-prometheus-operator-admission-webhook-1-4-push.yaml".pathChanged() || "Dockerfile.p-o-admission-webhook".pathChanged() || @@ -45,6 +46,8 @@ spec: value: . - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. diff --git a/.tekton/obo-prometheus-operator-prometheus-config-reloader-1-4-pull-request.yaml b/.tekton/obo-prometheus-operator-prometheus-config-reloader-1-4-pull-request.yaml index 1feba0a3..0d388548 100644 --- a/.tekton/obo-prometheus-operator-prometheus-config-reloader-1-4-pull-request.yaml +++ b/.tekton/obo-prometheus-operator-prometheus-config-reloader-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/obo-prometheus-operator-prometheus-config-reloader-1-4-pull-request.yaml".pathChanged() || ".tekton/obo-prometheus-operator-prometheus-config-reloader-1-4-push.yaml".pathChanged() || "Dockerfile.prometheus-config-reloader".pathChanged() || diff --git a/.tekton/obo-prometheus-operator-prometheus-config-reloader-1-4-push.yaml b/.tekton/obo-prometheus-operator-prometheus-config-reloader-1-4-push.yaml index 24abafab..7264f351 100644 --- a/.tekton/obo-prometheus-operator-prometheus-config-reloader-1-4-push.yaml +++ b/.tekton/obo-prometheus-operator-prometheus-config-reloader-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/obo-prometheus-operator-prometheus-config-reloader-1-4-pull-request.yaml".pathChanged() || ".tekton/obo-prometheus-operator-prometheus-config-reloader-1-4-push.yaml".pathChanged() || "Dockerfile.prometheus-config-reloader".pathChanged() || @@ -45,6 +46,8 @@ spec: value: . - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. diff --git a/.tekton/perses-1-4-pull-request.yaml b/.tekton/perses-1-4-pull-request.yaml index 6d48fe49..76598e06 100644 --- a/.tekton/perses-1-4-pull-request.yaml +++ b/.tekton/perses-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/perses-1-4-pull-request.yaml".pathChanged() || ".tekton/perses-1-4-push.yaml".pathChanged() || "Dockerfile.perses".pathChanged() || diff --git a/.tekton/perses-1-4-push.yaml b/.tekton/perses-1-4-push.yaml index cbebda43..a71c2b6e 100644 --- a/.tekton/perses-1-4-push.yaml +++ b/.tekton/perses-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/perses-1-4-pull-request.yaml".pathChanged() || ".tekton/perses-1-4-push.yaml".pathChanged() || "Dockerfile.perses".pathChanged() || @@ -45,6 +46,8 @@ spec: value: . - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. diff --git a/.tekton/perses-operator-1-4-pull-request.yaml b/.tekton/perses-operator-1-4-pull-request.yaml index cb11d564..0a7bb886 100644 --- a/.tekton/perses-operator-1-4-pull-request.yaml +++ b/.tekton/perses-operator-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/perses-operator-1-4-pull-request.yaml".pathChanged() || ".tekton/perses-operator-1-4-push.yaml".pathChanged() || "Dockerfile.perses-operator".pathChanged() || diff --git a/.tekton/perses-operator-1-4-push.yaml b/.tekton/perses-operator-1-4-push.yaml index 7e29629f..7b1d8eef 100644 --- a/.tekton/perses-operator-1-4-push.yaml +++ b/.tekton/perses-operator-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/perses-operator-1-4-pull-request.yaml".pathChanged() || ".tekton/perses-operator-1-4-push.yaml".pathChanged() || "Dockerfile.perses-operator".pathChanged() || @@ -45,6 +46,8 @@ spec: value: . - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. diff --git a/.tekton/prometheus-1-4-pull-request.yaml b/.tekton/prometheus-1-4-pull-request.yaml index 276de690..8b5a77e1 100644 --- a/.tekton/prometheus-1-4-pull-request.yaml +++ b/.tekton/prometheus-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/prometheus-1-4-pull-request.yaml".pathChanged() || ".tekton/prometheus-1-4-push.yaml".pathChanged() || "Dockerfile.prometheus".pathChanged() || diff --git a/.tekton/prometheus-1-4-push.yaml b/.tekton/prometheus-1-4-push.yaml index c1fcc889..9f406c13 100644 --- a/.tekton/prometheus-1-4-push.yaml +++ b/.tekton/prometheus-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/prometheus-1-4-pull-request.yaml".pathChanged() || ".tekton/prometheus-1-4-push.yaml".pathChanged() || "Dockerfile.prometheus".pathChanged() || diff --git a/.tekton/thanos-1-4-pull-request.yaml b/.tekton/thanos-1-4-pull-request.yaml index 389010bf..7d6e8883 100644 --- a/.tekton/thanos-1-4-pull-request.yaml +++ b/.tekton/thanos-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/thanos-1-4-pull-request.yaml".pathChanged() || ".tekton/thanos-1-4-push.yaml".pathChanged() || "Dockerfile.thanos".pathChanged() || diff --git a/.tekton/thanos-1-4-push.yaml b/.tekton/thanos-1-4-push.yaml index 23255045..1f048752 100644 --- a/.tekton/thanos-1-4-push.yaml +++ b/.tekton/thanos-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/thanos-1-4-pull-request.yaml".pathChanged() || ".tekton/thanos-1-4-push.yaml".pathChanged() || "Dockerfile.thanos".pathChanged() || @@ -45,6 +46,8 @@ spec: value: . - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. diff --git a/.tekton/troubleshooting-panel-console-plugin-1-4-pull-request.yaml b/.tekton/troubleshooting-panel-console-plugin-1-4-pull-request.yaml index c7bd264f..10148551 100644 --- a/.tekton/troubleshooting-panel-console-plugin-1-4-pull-request.yaml +++ b/.tekton/troubleshooting-panel-console-plugin-1-4-pull-request.yaml @@ -9,7 +9,8 @@ metadata: 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 == "release-1.4" && + ((event == "pull_request" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/troubleshooting-panel-console-plugin-1-4-pull-request.yaml".pathChanged() || ".tekton/troubleshooting-panel-console-plugin-1-4-push.yaml".pathChanged() || "Dockerfile.ui-troubleshooting-panel".pathChanged() || diff --git a/.tekton/troubleshooting-panel-console-plugin-1-4-push.yaml b/.tekton/troubleshooting-panel-console-plugin-1-4-push.yaml index 7bc3e93d..222c73db 100644 --- a/.tekton/troubleshooting-panel-console-plugin-1-4-push.yaml +++ b/.tekton/troubleshooting-panel-console-plugin-1-4-push.yaml @@ -8,7 +8,8 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: |- - event == "push" && target_branch == "release-1.4" && + ((event == "push" && target_branch == "release-1.4") || + (event == "push" && target_branch.startsWith("gh-readonly-queue/main/"))) && (".tekton/troubleshooting-panel-console-plugin-1-4-pull-request.yaml".pathChanged() || ".tekton/troubleshooting-panel-console-plugin-1-4-push.yaml".pathChanged() || "Dockerfile.ui-troubleshooting-panel".pathChanged() || @@ -45,6 +46,8 @@ spec: value: . - name: build-source-image value: "true" + - name: enable-cache-proxy + value: "true" pipelineSpec: description: | This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization. diff --git a/hack/customize-pipeline.sh b/hack/customize-pipeline.sh index afdc57d2..cfa1b3ce 100755 --- a/hack/customize-pipeline.sh +++ b/hack/customize-pipeline.sh @@ -75,7 +75,8 @@ do dockerfile=$(yq '.spec.params[] | select(.name == "dockerfile").value' "$file") src="$(grep COPY "$dockerfile" | head -n1 | awk '{print $2}'| cut -d'/' -f1)" if [[ "$component" == *"bundle"* ]]; then - export trigger="event == \"$action\" && target_branch == \"$branch\" && + export trigger="((event == \"$action\" && target_branch == \"$branch\") || + (event == \"push\" && target_branch.startsWith(\"gh-readonly-queue/main/\"))) && (\".tekton/$component-pull-request.yaml\".pathChanged() || \".tekton/$component-push.yaml\".pathChanged() || \"$dockerfile\".pathChanged() || @@ -83,10 +84,11 @@ do \"observability-operator/bundle/***\".pathChanged())" if [[ $action == "push" ]]; then yq -i '.metadata.annotations += {"build.appstudio.openshift.io/build-nudge-files": "hack/update-catalog.sh"}' "$file" - yq -i '.spec.params += [{"name": "build-args", "value": ["REGISTRY=registry.redhat.io"]}]' "$file" + yq -i 'with(.spec.params; select(all_c(.name != "build-args")) | . += [{"name": "build-args", "value": ["REGISTRY=registry.redhat.io"]}])' "$file" fi else - export trigger="event == \"$action\" && target_branch == \"$branch\" && + export trigger="((event == \"$action\" && target_branch == \"$branch\") || + (event == \"push\" && target_branch.startsWith(\"gh-readonly-queue/main/\"))) && (\".tekton/$component-pull-request.yaml\".pathChanged() || \".tekton/$component-push.yaml\".pathChanged() || \"$dockerfile\".pathChanged() || @@ -110,4 +112,7 @@ do # yq -i 'with(.spec.params; select(all_c(.name != "hermetic")) | . += [{"name": "hermetic", "value": "true"}])' "$file" # export gomod_prefetch="$src" # yq -i 'with(.spec.params; select(all_c(.name != "prefetch-input")) | . += [{"name": "prefetch-input", "value": "[{\"type\": \"gomod\", \"path\": \"./\(strenv(gomod_prefetch))\"}]"}])' "$file" + if [[ $action == "pull-request" ]]; then + yq -i '.metadata.labels+= {"build.appstudio.openshift.io/auto-release": "false"}' "$file" + fi done