From e240ee60dcf56831ae8e9f70069bf0d641b3250a Mon Sep 17 00:00:00 2001
From: Tomas Kopecek <tkopecek@redhat.com>
Date: Wed, 12 Feb 2025 18:26:38 +0100
Subject: [PATCH] Introduce rpmbuild tekton pipeline

Resolves: RHEL-79677
---
 ...-request.yaml => rhel-10-libecpg-pull-request.yaml} | 10 ++++++----
 .../{libecpg-push.yaml => rhel-10-libecpg-push.yaml}   | 10 ++++++----
 2 files changed, 12 insertions(+), 8 deletions(-)
 rename .tekton/{libecpg-pull-request.yaml => rhel-10-libecpg-pull-request.yaml} (80%)
 rename .tekton/{libecpg-push.yaml => rhel-10-libecpg-push.yaml} (79%)

diff --git a/.tekton/libecpg-pull-request.yaml b/.tekton/rhel-10-libecpg-pull-request.yaml
similarity index 80%
rename from .tekton/libecpg-pull-request.yaml
rename to .tekton/rhel-10-libecpg-pull-request.yaml
index d2d0556..b7286d1 100644
--- a/.tekton/libecpg-pull-request.yaml
+++ b/.tekton/rhel-10-libecpg-pull-request.yaml
@@ -11,13 +11,15 @@ metadata:
     pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request"
   creationTimestamp: null
   labels:
-    appstudio.openshift.io/application: rpms
-    appstudio.openshift.io/component: libecpg
+    appstudio.openshift.io/application: rhel-10-workload-db-postgresql-libs
+    appstudio.openshift.io/component: rhel-10-libecpg
     pipelines.appstudio.openshift.io/type: build
-  name: libecpg-on-pull-request
-  namespace: rhel-on-konflux-tenant
+  name: rhel-10-libecpg-on-pull-request
+  namespace: rhel-sst-cs-database-tenant
 spec:
   params:
+    - name: application
+      value: rhel-10-workload-db-postgresql-libs
     - name: package-name
       value: libecpg
     - name: git-url
diff --git a/.tekton/libecpg-push.yaml b/.tekton/rhel-10-libecpg-push.yaml
similarity index 79%
rename from .tekton/libecpg-push.yaml
rename to .tekton/rhel-10-libecpg-push.yaml
index 4479257..c167f6b 100644
--- a/.tekton/libecpg-push.yaml
+++ b/.tekton/rhel-10-libecpg-push.yaml
@@ -10,13 +10,15 @@ metadata:
     pipelinesascode.tekton.dev/on-cel-expression: event == "push"
   creationTimestamp: null
   labels:
-    appstudio.openshift.io/application: rpms
-    appstudio.openshift.io/component: libecpg
+    appstudio.openshift.io/application: rhel-10-workload-db-postgresql-libs
+    appstudio.openshift.io/component: rhel-10-libecpg
     pipelines.appstudio.openshift.io/type: build
-  name: libecpg-on-push
-  namespace: rhel-on-konflux-tenant
+  name: rhel-10-libecpg-on-push
+  namespace: rhel-sst-cs-database-tenant
 spec:
   params:
+    - name: application
+      value: rhel-10-workload-db-postgresql-libs
     - name: package-name
       value: libecpg
     - name: git-url