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 authored and vdemeester committed Nov 26, 2024
1 parent e80f854 commit c020ed7
Show file tree
Hide file tree
Showing 6 changed files with 156 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .konflux/main/component-cli.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by openshift-pipelines/hack. DO NOT EDIT.
---
apiVersion: appstudio.redhat.com/v1alpha1
kind: Component
metadata:
annotations:
build.appstudio.openshift.io/pipeline: '{"name":"docker-build-multi-platform-oci-ta","bundle":"latest"}'
name: pac-downstream-main-cli
spec:
componentName: cli
application: pac-downstream-main
build-nudges-ref:
- operator-main-bundle
source:
git:
url: https://github.com/openshift-pipelines/pac-downstream
dockerfileUrl: .konflux/dockerfiles/cli.Dockerfile
revision: main
15 changes: 15 additions & 0 deletions .konflux/main/image-cli.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Generated by openshift-pipelines/hack. DO NOT EDIT.
---
apiVersion: appstudio.redhat.com/v1alpha1
kind: ImageRepository
metadata:
name: pac-downstream-main-cli
annotations:
image-controller.appstudio.redhat.com/update-component-image: "true"
labels:
appstudio.redhat.com/component: pac-downstream-main-cli
appstudio.redhat.com/application: pac-downstream-main
spec:
image:
name: pac-downstream-main/cli
visibility: public
18 changes: 18 additions & 0 deletions .konflux/next/component-cli.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by openshift-pipelines/hack. DO NOT EDIT.
---
apiVersion: appstudio.redhat.com/v1alpha1
kind: Component
metadata:
annotations:
build.appstudio.openshift.io/pipeline: '{"name":"docker-build-multi-platform-oci-ta","bundle":"latest"}'
name: pac-downstream-next-cli
spec:
componentName: cli
application: pac-downstream-next
build-nudges-ref:
- operator-next-bundle
source:
git:
url: https://github.com/openshift-pipelines/pac-downstream
dockerfileUrl: .konflux/dockerfiles/cli.Dockerfile
revision: next
15 changes: 15 additions & 0 deletions .konflux/next/image-cli.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Generated by openshift-pipelines/hack. DO NOT EDIT.
---
apiVersion: appstudio.redhat.com/v1alpha1
kind: ImageRepository
metadata:
name: pac-downstream-next-cli
annotations:
image-controller.appstudio.redhat.com/update-component-image: "true"
labels:
appstudio.redhat.com/component: pac-downstream-next-cli
appstudio.redhat.com/application: pac-downstream-next
spec:
image:
name: pac-downstream-next/cli
visibility: public
48 changes: 48 additions & 0 deletions .tekton/pac-downstream-main-cli-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Generated by openshift-pipelines/hack. DO NOT EDIT.
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/openshift-pipelines/pac-downstream?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() || ".konflux/patches/***".pathChanged() || ".konflux/rpms/***".pathChanged() ||
".konflux/dockerfiles/cli.Dockerfile".pathChanged() ||
".tekton/pac-downstream-main-cli-pull-request.yaml".pathChanged() ||
".tekton/docker-build-ta.yaml".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: pac-downstream-main
appstudio.openshift.io/component: pac-downstream-main-cli
pipelines.appstudio.openshift.io/type: build
name: pac-downstream-main-cli-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/pac-downstream-main/cli:on-pr-{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
value: .konflux/dockerfiles/cli.Dockerfile
- name: build-platforms
value:
- linux/x86_64
- name: prefetch-input
value: |
{"type": "rpm", "path": ".konflux/rpms"}
pipelineRef:
name: docker-build-ta
workspaces:
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'
status: {}
42 changes: 42 additions & 0 deletions .tekton/pac-downstream-main-cli-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Generated by openshift-pipelines/hack. DO NOT EDIT.
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/openshift-pipelines/pac-downstream?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() || ".konflux/patches/***".pathChanged() || ".konflux/rpms/***".pathChanged() ||
".konflux/dockerfiles/cli.Dockerfile".pathChanged() ||
".tekton/pac-downstream-main-cli-push.yaml".pathChanged() ||
".tekton/docker-build-ta.yaml".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: pac-downstream-main
appstudio.openshift.io/component: pac-downstream-main-cli
pipelines.appstudio.openshift.io/type: build
name: pac-downstream-main-cli-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/pac-downstream-main/cli:{{revision}}
- name: dockerfile
value: .konflux/dockerfiles/cli.Dockerfile
- name: prefetch-input
value: |
{"type": "rpm", "path": ".konflux/rpms"}
pipelineRef:
name: docker-build-ta
workspaces:
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'
status: {}

0 comments on commit c020ed7

Please sign in to comment.