From fdd6d4921b1e9221c9fc964a99eca07e908202f6 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Wed, 12 Feb 2025 18:19:46 +0100 Subject: [PATCH] Introduce rpmbuild tekton pipeline Resolves: RHEL-79677 --- .tekton/rhel-10-gdbm-pull-request.yaml | 43 ++++++++++++++++++++++++++ .tekton/rhel-10-gdbm-push.yaml | 42 +++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 .tekton/rhel-10-gdbm-pull-request.yaml create mode 100644 .tekton/rhel-10-gdbm-push.yaml diff --git a/.tekton/rhel-10-gdbm-pull-request.yaml b/.tekton/rhel-10-gdbm-pull-request.yaml new file mode 100644 index 0000000..9e851c0 --- /dev/null +++ b/.tekton/rhel-10-gdbm-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-embedded + appstudio.openshift.io/component: rhel-10-gdbm + pipelines.appstudio.openshift.io/type: build + name: rhel-10-gdbm-on-pull-request + namespace: rhel-sst-cs-database-tenant +spec: + params: + - name: application + value: rhel-10-workload-embedded + - name: package-name + value: gdbm + - 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-gdbm-push.yaml b/.tekton/rhel-10-gdbm-push.yaml new file mode 100644 index 0000000..a6e89ee --- /dev/null +++ b/.tekton/rhel-10-gdbm-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" && target_branch == "{{ target_branch }}" + creationTimestamp: null + labels: + appstudio.openshift.io/application: rhel-10-workload-embedded + appstudio.openshift.io/component: rhel-10-gdbm + pipelines.appstudio.openshift.io/type: build + name: rhel-10-gdbm-on-push + namespace: rhel-sst-cs-database-tenant +spec: + params: + - name: application + value: rhel-10-workload-embedded + - name: package-name + value: gdbm + - 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 }}'