Introduce rpmbuild tekton pipeline

Resolves: RHEL-79677
This commit is contained in:
Tomas Kopecek 2025-02-12 18:29:53 +01:00
parent 6ec7580056
commit e53fb4a585
2 changed files with 85 additions and 0 deletions

View File

@ -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-text-processing
appstudio.openshift.io/component: rhel-10-docbook-style-dsssl
pipelines.appstudio.openshift.io/type: build
name: rhel-10-docbook-style-dsssl-on-pull-request
namespace: rhel-sst-cs-database-tenant
spec:
params:
- name: application
value: rhel-10-workload-text-processing
- name: package-name
value: docbook-style-dsssl
- 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 }}'

View File

@ -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-text-processing
appstudio.openshift.io/component: rhel-10-docbook-style-dsssl
pipelines.appstudio.openshift.io/type: build
name: rhel-10-docbook-style-dsssl-on-push
namespace: rhel-sst-cs-database-tenant
spec:
params:
- name: application
value: rhel-10-workload-text-processing
- name: package-name
value: docbook-style-dsssl
- 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 }}'