Skip to content

Commit

Permalink
[bot] update konflux configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
openshift-pipelines-bot committed Sep 20, 2024
1 parent 20080b8 commit b815ec8
Show file tree
Hide file tree
Showing 7 changed files with 756 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .tekton/controller-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/openshift-pipelines/operator?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/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
== "main" &&
("upstream/***".pathChanged() || "openshift/***".pathChanged() ||
".tekton/controller-pull-request.yaml".pathChanged() ||
".tekton/controller-push.yaml".pathChanged() ||
".tekton/docker-build.yaml".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: operator-main
appstudio.openshift.io/component: controller
pipelines.appstudio.openshift.io/type: build
name: controller-on-pull-request
namespace: tekton-ecosystem-tenant
spec:
params:
- name: git-url
value: '{{source_url}}'
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/operator-main/controller:on-pr-{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
value: openshift/dockerfiles/controller.Dockerfile
- name: build-source-image
value: "true"
- name: hermetic
value: "true"
- name: prefetch-input
value: |
{"type": "rpm", "path": "openshift/rpms"}
pipelineRef:
name: docker-build
workspaces:
- name: workspace
volumeClaimTemplate:
metadata:
creationTimestamp: null
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
status: {}
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'
status: {}
56 changes: 56 additions & 0 deletions .tekton/controller-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/openshift-pipelines/operator?rev={{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
== "main" &&
("upstream/***".pathChanged() || "openshift/***".pathChanged() ||
".tekton/controller-pull-request.yaml".pathChanged() ||
".tekton/controller-push.yaml".pathChanged() ||
".tekton/docker-build.yaml".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: operator-main
appstudio.openshift.io/component: controller
pipelines.appstudio.openshift.io/type: build
name: controller-on-push
namespace: tekton-ecosystem-tenant
spec:
params:
- name: git-url
value: '{{source_url}}'
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/operator-main/controller:{{revision}}
- name: dockerfile
value: openshift/dockerfiles/controller.Dockerfile
- name: build-source-image
value: "true"
- name: hermetic
value: "true"
- name: prefetch-input
value: |
{"type": "rpm", "path": "openshift/rpms"}
pipelineRef:
name: docker-build
workspaces:
- name: workspace
volumeClaimTemplate:
metadata:
creationTimestamp: null
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
status: {}
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'
status: {}
Loading

0 comments on commit b815ec8

Please sign in to comment.