From 42ed8798f4959ab85eb0cfb1b4d6d274ebbc1982 Mon Sep 17 00:00:00 2001 From: red-hat-trusted-app-pipeline Date: Sun, 3 Dec 2023 05:02:31 +0000 Subject: [PATCH] Red Hat Trusted App Pipeline update centos-bootc --- .tekton/centos-bootc-pull-request.yaml | 82 ++++++++++++++++++++++++++ .tekton/centos-bootc-push.yaml | 82 ++++++++++++++++++++++++++ 2 files changed, 164 insertions(+) create mode 100644 .tekton/centos-bootc-pull-request.yaml create mode 100644 .tekton/centos-bootc-push.yaml diff --git a/.tekton/centos-bootc-pull-request.yaml b/.tekton/centos-bootc-pull-request.yaml new file mode 100644 index 0000000..8a0ba4e --- /dev/null +++ b/.tekton/centos-bootc-pull-request.yaml @@ -0,0 +1,82 @@ +apiVersion: tekton.dev/v1beta1 +kind: PipelineRun +metadata: + annotations: + build.appstudio.openshift.io/repo: https://github.com/CentOS/centos-bootc?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" + creationTimestamp: null + labels: + appstudio.openshift.io/application: centos-bootc + appstudio.openshift.io/component: centos-bootc + pipelines.appstudio.openshift.io/type: build + name: centos-bootc-on-pull-request + namespace: centos-bootc-tenant +spec: + params: + - name: image-file + value: centos-bootc.yaml + - name: git-url + value: "{{repo_url}}" + - name: output-image + value: quay.io/redhat-user-workloads/centos-bootc-tenant/centos-bootc/centos-bootc:on-pr-{{revision}} + - name: path-context + value: . + - name: revision + value: "{{revision}}" + pipelineRef: + name: ostree-build + workspaces: + - name: workspace + volumeClaimTemplate: + metadata: + creationTimestamp: null + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi + status: {} + - name: workspace-arm64 + volumeClaimTemplate: + metadata: + creationTimestamp: null + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi + status: {} + - name: workspace-s390x + volumeClaimTemplate: + metadata: + creationTimestamp: null + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi + status: {} + - name: workspace-ppc64le + volumeClaimTemplate: + metadata: + creationTimestamp: null + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi + status: {} + - name: git-auth + secret: + secretName: "{{ git_auth_secret }}" +status: {} diff --git a/.tekton/centos-bootc-push.yaml b/.tekton/centos-bootc-push.yaml new file mode 100644 index 0000000..3996b5c --- /dev/null +++ b/.tekton/centos-bootc-push.yaml @@ -0,0 +1,82 @@ +apiVersion: tekton.dev/v1beta1 +kind: PipelineRun +metadata: + annotations: + build.appstudio.openshift.io/repo: https://github.com/CentOS/centos-bootc?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 == "push" && target_branch + == "main" + creationTimestamp: null + labels: + appstudio.openshift.io/application: centos-bootc + appstudio.openshift.io/component: centos-bootc + pipelines.appstudio.openshift.io/type: build + name: centos-bootc-on-push + namespace: centos-bootc-tenant +spec: + params: + - name: image-file + value: centos-bootc.yaml + - name: git-url + value: "{{repo_url}}" + - name: output-image + value: quay.io/redhat-user-workloads/centos-bootc-tenant/centos-bootc/centos-bootc:on-pr-{{revision}} + - name: path-context + value: . + - name: revision + value: "{{revision}}" + pipelineRef: + name: ostree-build + workspaces: + - name: workspace + volumeClaimTemplate: + metadata: + creationTimestamp: null + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi + status: {} + - name: workspace-arm64 + volumeClaimTemplate: + metadata: + creationTimestamp: null + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi + status: {} + - name: workspace-s390x + volumeClaimTemplate: + metadata: + creationTimestamp: null + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi + status: {} + - name: workspace-ppc64le + volumeClaimTemplate: + metadata: + creationTimestamp: null + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi + status: {} + - name: git-auth + secret: + secretName: "{{ git_auth_secret }}" +status: {}