Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .tekton/catalog-5-0-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/netobserv/netobserv-catalog?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/cancel-in-progress: "true"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
== "main" && (".tekton/***".pathChanged() || "Dockerfile".pathChanged() || "templates/next-release.Dockerfile-args".pathChanged() || "auto-generated/catalog/released.yaml".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: catalog-5-0
appstudio.openshift.io/component: catalog-5-0
pipelines.appstudio.openshift.io/type: build
name: catalog-5-0-on-pull-request
namespace: ocp-network-observab-tenant
spec:
params:
- name: git-url
value: '{{source_url}}'
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/ocp-network-observab-tenant/catalog-5--:on-pr-{{revision}}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo?

Suggested change
value: quay.io/redhat-user-workloads/ocp-network-observab-tenant/catalog-5--:on-pr-{{revision}}
value: quay.io/redhat-user-workloads/ocp-network-observab-tenant/catalog-5-0:on-pr-{{revision}}

- name: build-args-file
value: templates/next-release.Dockerfile-args
- name: image-expires-after
value: 5d
- name: dockerfile
value: Dockerfile
- name: opm-image
value: registry.redhat.io/openshift4/ose-operator-registry-rhel9:v5.0
- name: index-file
value: ./auto-generated/catalog/released.yaml
pipelineRef:
name: build-fbc-pipeline
taskRunTemplate:
serviceAccountName: build-pipeline-catalog-5-0
workspaces:
- name: workspace
volumeClaimTemplate:
metadata:
creationTimestamp: null
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
status: {}
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'
status: {}
54 changes: 54 additions & 0 deletions .tekton/catalog-5-0-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/netobserv/netobserv-catalog?rev={{revision}}
build.appstudio.redhat.com/commit_sha: '{{revision}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/cancel-in-progress: "false"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
== "main" && (".tekton/***".pathChanged() || "Dockerfile".pathChanged() || "templates/next-release.Dockerfile-args".pathChanged() || "auto-generated/catalog/released.yaml".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: catalog-5-0
appstudio.openshift.io/component: catalog-5-0
pipelines.appstudio.openshift.io/type: build
name: catalog-5-0-on-push
namespace: ocp-network-observab-tenant
spec:
params:
- name: git-url
value: '{{source_url}}'
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/ocp-network-observab-tenant/catalog-5-0:latest
- name: build-args-file
value: templates/next-release.Dockerfile-args
- name: dockerfile
value: Dockerfile
- name: opm-image
value: registry.redhat.io/openshift4/ose-operator-registry-rhel9:v5.0
- name: index-file
value: ./auto-generated/catalog/released.yaml
pipelineRef:
name: build-fbc-pipeline
taskRunTemplate:
serviceAccountName: build-pipeline-catalog-5-0
workspaces:
- name: workspace
volumeClaimTemplate:
metadata:
creationTimestamp: null
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
status: {}
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'
status: {}