From c020ed7e1d1bef0b68922dd4483afedfc7686fe7 Mon Sep 17 00:00:00 2001 From: openshift-pipelines-bot Date: Tue, 26 Nov 2024 16:53:55 +0000 Subject: [PATCH] [bot] update konflux configuration --- .konflux/main/component-cli.yaml | 18 +++++++ .konflux/main/image-cli.yaml | 15 ++++++ .konflux/next/component-cli.yaml | 18 +++++++ .konflux/next/image-cli.yaml | 15 ++++++ .../pac-downstream-main-cli-pull-request.yaml | 48 +++++++++++++++++++ .tekton/pac-downstream-main-cli-push.yaml | 42 ++++++++++++++++ 6 files changed, 156 insertions(+) create mode 100644 .konflux/main/component-cli.yaml create mode 100644 .konflux/main/image-cli.yaml create mode 100644 .konflux/next/component-cli.yaml create mode 100644 .konflux/next/image-cli.yaml create mode 100644 .tekton/pac-downstream-main-cli-pull-request.yaml create mode 100644 .tekton/pac-downstream-main-cli-push.yaml diff --git a/.konflux/main/component-cli.yaml b/.konflux/main/component-cli.yaml new file mode 100644 index 000000000..286d094bd --- /dev/null +++ b/.konflux/main/component-cli.yaml @@ -0,0 +1,18 @@ +# Generated by openshift-pipelines/hack. DO NOT EDIT. +--- +apiVersion: appstudio.redhat.com/v1alpha1 +kind: Component +metadata: + annotations: + build.appstudio.openshift.io/pipeline: '{"name":"docker-build-multi-platform-oci-ta","bundle":"latest"}' + name: pac-downstream-main-cli +spec: + componentName: cli + application: pac-downstream-main + build-nudges-ref: + - operator-main-bundle + source: + git: + url: https://github.com/openshift-pipelines/pac-downstream + dockerfileUrl: .konflux/dockerfiles/cli.Dockerfile + revision: main diff --git a/.konflux/main/image-cli.yaml b/.konflux/main/image-cli.yaml new file mode 100644 index 000000000..ad5f4d1de --- /dev/null +++ b/.konflux/main/image-cli.yaml @@ -0,0 +1,15 @@ +# Generated by openshift-pipelines/hack. DO NOT EDIT. +--- +apiVersion: appstudio.redhat.com/v1alpha1 +kind: ImageRepository +metadata: + name: pac-downstream-main-cli + annotations: + image-controller.appstudio.redhat.com/update-component-image: "true" + labels: + appstudio.redhat.com/component: pac-downstream-main-cli + appstudio.redhat.com/application: pac-downstream-main +spec: + image: + name: pac-downstream-main/cli + visibility: public diff --git a/.konflux/next/component-cli.yaml b/.konflux/next/component-cli.yaml new file mode 100644 index 000000000..d37796755 --- /dev/null +++ b/.konflux/next/component-cli.yaml @@ -0,0 +1,18 @@ +# Generated by openshift-pipelines/hack. DO NOT EDIT. +--- +apiVersion: appstudio.redhat.com/v1alpha1 +kind: Component +metadata: + annotations: + build.appstudio.openshift.io/pipeline: '{"name":"docker-build-multi-platform-oci-ta","bundle":"latest"}' + name: pac-downstream-next-cli +spec: + componentName: cli + application: pac-downstream-next + build-nudges-ref: + - operator-next-bundle + source: + git: + url: https://github.com/openshift-pipelines/pac-downstream + dockerfileUrl: .konflux/dockerfiles/cli.Dockerfile + revision: next diff --git a/.konflux/next/image-cli.yaml b/.konflux/next/image-cli.yaml new file mode 100644 index 000000000..db2f66157 --- /dev/null +++ b/.konflux/next/image-cli.yaml @@ -0,0 +1,15 @@ +# Generated by openshift-pipelines/hack. DO NOT EDIT. +--- +apiVersion: appstudio.redhat.com/v1alpha1 +kind: ImageRepository +metadata: + name: pac-downstream-next-cli + annotations: + image-controller.appstudio.redhat.com/update-component-image: "true" + labels: + appstudio.redhat.com/component: pac-downstream-next-cli + appstudio.redhat.com/application: pac-downstream-next +spec: + image: + name: pac-downstream-next/cli + visibility: public diff --git a/.tekton/pac-downstream-main-cli-pull-request.yaml b/.tekton/pac-downstream-main-cli-pull-request.yaml new file mode 100644 index 000000000..8c8817a9f --- /dev/null +++ b/.tekton/pac-downstream-main-cli-pull-request.yaml @@ -0,0 +1,48 @@ +# Generated by openshift-pipelines/hack. DO NOT EDIT. +apiVersion: tekton.dev/v1 +kind: PipelineRun +metadata: + annotations: + build.appstudio.openshift.io/repo: https://github.com/openshift-pipelines/pac-downstream?rev={{revision}} + build.appstudio.redhat.com/commit_sha: '{{revision}}' + 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" && + ("upstream/***".pathChanged() || ".konflux/patches/***".pathChanged() || ".konflux/rpms/***".pathChanged() || + ".konflux/dockerfiles/cli.Dockerfile".pathChanged() || + ".tekton/pac-downstream-main-cli-pull-request.yaml".pathChanged() || + ".tekton/docker-build-ta.yaml".pathChanged()) + creationTimestamp: null + labels: + appstudio.openshift.io/application: pac-downstream-main + appstudio.openshift.io/component: pac-downstream-main-cli + pipelines.appstudio.openshift.io/type: build + name: pac-downstream-main-cli-on-pull-request + namespace: tekton-ecosystem-tenant +spec: + params: + - name: git-url + value: '{{source_url}}' + - name: revision + value: '{{revision}}' + - name: output-image + value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/pac-downstream-main/cli:on-pr-{{revision}} + - name: image-expires-after + value: 5d + - name: dockerfile + value: .konflux/dockerfiles/cli.Dockerfile + - name: build-platforms + value: + - linux/x86_64 + - name: prefetch-input + value: | + {"type": "rpm", "path": ".konflux/rpms"} + pipelineRef: + name: docker-build-ta + workspaces: + - name: git-auth + secret: + secretName: '{{ git_auth_secret }}' +status: {} diff --git a/.tekton/pac-downstream-main-cli-push.yaml b/.tekton/pac-downstream-main-cli-push.yaml new file mode 100644 index 000000000..def5b9851 --- /dev/null +++ b/.tekton/pac-downstream-main-cli-push.yaml @@ -0,0 +1,42 @@ +# Generated by openshift-pipelines/hack. DO NOT EDIT. +apiVersion: tekton.dev/v1 +kind: PipelineRun +metadata: + annotations: + build.appstudio.openshift.io/repo: https://github.com/openshift-pipelines/pac-downstream?rev={{revision}} + 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" && + ("upstream/***".pathChanged() || ".konflux/patches/***".pathChanged() || ".konflux/rpms/***".pathChanged() || + ".konflux/dockerfiles/cli.Dockerfile".pathChanged() || + ".tekton/pac-downstream-main-cli-push.yaml".pathChanged() || + ".tekton/docker-build-ta.yaml".pathChanged()) + creationTimestamp: null + labels: + appstudio.openshift.io/application: pac-downstream-main + appstudio.openshift.io/component: pac-downstream-main-cli + pipelines.appstudio.openshift.io/type: build + name: pac-downstream-main-cli-on-push + namespace: tekton-ecosystem-tenant +spec: + params: + - name: git-url + value: '{{source_url}}' + - name: revision + value: '{{revision}}' + - name: output-image + value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/pac-downstream-main/cli:{{revision}} + - name: dockerfile + value: .konflux/dockerfiles/cli.Dockerfile + - name: prefetch-input + value: | + {"type": "rpm", "path": ".konflux/rpms"} + pipelineRef: + name: docker-build-ta + workspaces: + - name: git-auth + secret: + secretName: '{{ git_auth_secret }}' +status: {}