Skip to content

Commit

Permalink
Add operator-main-bundle image…
Browse files Browse the repository at this point in the history
… and fix and update the pipelinerun to build on `image-mapping.yaml` changes.

Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Oct 3, 2024
1 parent 4c73f8c commit a437d16
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
14 changes: 14 additions & 0 deletions .konflux/main/image-bundle.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: appstudio.redhat.com/v1alpha1
kind: ImageRepository
metadata:
name: operator-main-bundle
annotations:
image-controller.appstudio.redhat.com/update-component-image: "true"
labels:
appstudio.redhat.com/component: operator-main-bundle
appstudio.redhat.com/application: operator-main
spec:
image:
name: operator-main/bundle
visibility: public
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ metadata:
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 == "main" &&
(".tekton/openshift-pipelines-bundle-push.yaml".pathChanged() ||
".tekton/openshift-pipelines-bundle-pull-request.yaml".pathChanged() ||
(".tekton/operator-main-bundle-push.yaml".pathChanged() ||
".tekton/operator-main-bundle-pull-request.yaml".pathChanged() ||
"openshift/image-mapping.yaml".pathChanged() ||
"olm-catalog/openshift-pipelines/Dockerfile".pathChanged() ||
"olm-catalog/openshift-pipelines/metadata/***".pathChanged() ||
"olm-catalog/openshift-pipelines/manifests/***".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-pipelines-operator
appstudio.openshift.io/component: openshift-pipelines-bundle
appstudio.openshift.io/component: operator-main-bundle
pipelines.appstudio.openshift.io/type: build
name: openshift-pipelines-bundle-on-pull-request
name: operator-main-bundle-on-pull-request
namespace: tekton-ecosystem-tenant
spec:
params:
Expand All @@ -27,7 +28,7 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/openshift-pipelines-operator/openshift-pipelines-bundle:on-pr-{{revision}}
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/openshift-pipelines-operator/bundle:on-pr-{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ metadata:
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 == "main" &&
(".tekton/openshift-pipelines-bundle-push.yaml".pathChanged() ||
".tekton/openshift-pipelines-bundle-pull-request.yaml".pathChanged() ||
(".tekton/operator-main-bundle-push.yaml".pathChanged() ||
".tekton/operator-main-bundle-pull-request.yaml".pathChanged() ||
"openshift/image-mapping.yaml".pathChanged() ||
"olm-catalog/openshift-pipelines/Dockerfile".pathChanged() ||
"olm-catalog/openshift-pipelines/metadata/***".pathChanged() ||
"olm-catalog/openshift-pipelines/manifests/***".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-pipelines-operator
appstudio.openshift.io/component: openshift-pipelines-bundle
appstudio.openshift.io/component: operator-main-bundle
pipelines.appstudio.openshift.io/type: build
name: openshift-pipelines-bundle-on-push
name: operator-main-bundle-on-push
namespace: tekton-ecosystem-tenant
spec:
params:
Expand All @@ -26,7 +27,7 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/openshift-pipelines-operator/openshift-pipelines-bundle:{{revision}}
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/openshift-pipelines-operator/bundle:{{revision}}
- name: dockerfile
value: olm-catalog/openshift-pipelines/Dockerfile
pipelineSpec:
Expand Down

0 comments on commit a437d16

Please sign in to comment.