diff --git a/.tekton/rhel-10-gd-pull-request.yaml b/.tekton/rhel-10-gd-pull-request.yaml new file mode 100644 index 0000000..db07b5e --- /dev/null +++ b/.tekton/rhel-10-gd-pull-request.yaml @@ -0,0 +1,43 @@ +--- +apiVersion: tekton.dev/v1 +kind: PipelineRun +metadata: + annotations: + build.appstudio.openshift.io/repo: '{{ source_url }}/-/tree/{{ 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" + creationTimestamp: null + labels: + appstudio.openshift.io/application: rhel-10-workload-apps-unsorted + appstudio.openshift.io/component: rhel-10-gd + pipelines.appstudio.openshift.io/type: build + name: rhel-10-gd-on-pull-request + namespace: rhel-sst-cs-database-tenant +spec: + params: + - name: application + value: rhel-10-workload-apps-unsorted + - name: package-name + value: gd + - name: git-url + value: "{{ source_url }}" + - name: revision + value: "{{ revision }}" + - name: target-branch + value: "{{ target_branch }}" + pipelineRef: + resolver: git + params: + - name: url + value: "https://gitlab.cee.redhat.com/rhel-on-konflux/rpmbuild-pipeline.git" + - name: revision + value: main + - name: pathInRepo + value: pipeline/build-rhel-package.yaml + workspaces: + - name: git-auth + secret: + secretName: '{{ git_auth_secret }}' diff --git a/.tekton/rhel-10-gd-push.yaml b/.tekton/rhel-10-gd-push.yaml new file mode 100644 index 0000000..1ef8666 --- /dev/null +++ b/.tekton/rhel-10-gd-push.yaml @@ -0,0 +1,42 @@ +--- +apiVersion: tekton.dev/v1 +kind: PipelineRun +metadata: + annotations: + build.appstudio.openshift.io/repo: '{{ source_url }}/-/tree/{{ 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" + creationTimestamp: null + labels: + appstudio.openshift.io/application: rhel-10-workload-apps-unsorted + appstudio.openshift.io/component: rhel-10-gd + pipelines.appstudio.openshift.io/type: build + name: rhel-10-gd-on-push + namespace: rhel-sst-cs-database-tenant +spec: + params: + - name: application + value: rhel-10-workload-apps-unsorted + - name: package-name + value: gd + - name: git-url + value: "{{ source_url }}" + - name: revision + value: "{{ revision }}" + - name: target-branch + value: "{{ target_branch }}" + pipelineRef: + resolver: git + params: + - name: url + value: "https://gitlab.cee.redhat.com/rhel-on-konflux/rpmbuild-pipeline.git" + - name: revision + value: main + - name: pathInRepo + value: pipeline/build-rhel-package.yaml + workspaces: + - name: git-auth + secret: + secretName: '{{ git_auth_secret }}'