Skip to content

Commit

Permalink
Update tekton pipelines for builds 1.2 branch
Browse files Browse the repository at this point in the history
Changes:
- Update application and component in tekton pipelines to point to Builds 1.2 in Konflux
  • Loading branch information
sayan-biswas committed Nov 11, 2024
1 parent 129ab7b commit 198c6b2
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 48 deletions.
8 changes: 4 additions & 4 deletions .tekton/openshift-builds-controller-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ metadata:
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" &&
target_branch == "builds-1.1" &&
target_branch == "builds-1.2" &&
(
files.all.exists(x, x.matches('version/|pkg/controller/|pkg/client|pkg/reconciler|pkg/volumes|pkg/validate|pkg/env|pkg/metrics/|pkg/apis/|pkg/config/|pkg/ctxlog/|cmd/shipwright-build-controller/|.konflux/controller/')) ||
files.all.exists(x, x.matches('go.mod|go.sum')) ||
files.all.exists(x, x.matches('.tekton/openshift-builds-controller-pull-request.yaml'))
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-builds-1-1
appstudio.openshift.io/component: openshift-builds-controller-1-1
appstudio.openshift.io/application: openshift-builds-1-2
appstudio.openshift.io/component: openshift-builds-controller-1-2
pipelines.appstudio.openshift.io/type: build
name: openshift-builds-controller-on-pull-request
namespace: rh-openshift-builds-tenant
Expand All @@ -29,7 +29,7 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-controller-1-1:on-pr-{{revision}}
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-controller-1-2:on-pr-{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
Expand Down
8 changes: 4 additions & 4 deletions .tekton/openshift-builds-controller-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ metadata:
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push" &&
target_branch == "builds-1.1" &&
target_branch == "builds-1.2" &&
(
files.all.exists(x, x.matches('version/|pkg/controller/|pkg/client|pkg/reconciler|pkg/volumes|pkg/validate|pkg/env|pkg/metrics/|pkg/apis/|pkg/config/|pkg/ctxlog/|cmd/shipwright-build-controller/|.konflux/controller/')) ||
files.all.exists(x, x.matches('go.mod|go.sum')) ||
files.all.exists(x, x.matches('.tekton/openshift-builds-controller-push.yaml'))
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-builds-1-1
appstudio.openshift.io/component: openshift-builds-controller-1-1
appstudio.openshift.io/application: openshift-builds-1-2
appstudio.openshift.io/component: openshift-builds-controller-1-2
pipelines.appstudio.openshift.io/type: build
name: openshift-builds-controller-on-push
namespace: rh-openshift-builds-tenant
Expand All @@ -28,7 +28,7 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-controller-1-1:{{revision}}
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-controller-1-2:{{revision}}
- name: dockerfile
value: .konflux/controller/Dockerfile
- name: build-source-image
Expand Down
8 changes: 4 additions & 4 deletions .tekton/openshift-builds-git-cloner-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ metadata:
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" &&
target_branch == "builds-1.1" &&
target_branch == "builds-1.2" &&
(
files.all.exists(x, x.matches('cmd/git/|pkg/git/|.konflux/git-cloner/')) ||
files.all.exists(x, x.matches('go.mod|go.sum')) ||
files.all.exists(x, x.matches('.tekton/openshift-builds-git-cloner-pull-request.yaml'))
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-builds-1-1
appstudio.openshift.io/component: openshift-builds-git-cloner-1-1
appstudio.openshift.io/application: openshift-builds-1-2
appstudio.openshift.io/component: openshift-builds-git-cloner-1-2
pipelines.appstudio.openshift.io/type: build
name: openshift-builds-git-cloner-on-pull-request
namespace: rh-openshift-builds-tenant
Expand All @@ -29,7 +29,7 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-git-cloner-1-1:on-pr-{{revision}}
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-git-cloner-1-2:on-pr-{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
Expand Down
8 changes: 4 additions & 4 deletions .tekton/openshift-builds-git-cloner-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ metadata:
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push" &&
target_branch == "builds-1.1" &&
target_branch == "builds-1.2" &&
(
files.all.exists(x, x.matches('cmd/git/|pkg/git/|.konflux/git-cloner/')) ||
files.all.exists(x, x.matches('go.mod|go.sum')) ||
files.all.exists(x, x.matches('.tekton/openshift-builds-git-cloner-push.yaml'))
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-builds-1-1
appstudio.openshift.io/component: openshift-builds-git-cloner-1-1
appstudio.openshift.io/application: openshift-builds-1-2
appstudio.openshift.io/component: openshift-builds-git-cloner-1-2
pipelines.appstudio.openshift.io/type: build
name: openshift-builds-git-cloner-on-push
namespace: rh-openshift-builds-tenant
Expand All @@ -28,7 +28,7 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-git-cloner-1-1:{{revision}}
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-git-cloner-1-2:{{revision}}
- name: dockerfile
value: .konflux/git-cloner/Dockerfile
- name: build-source-image
Expand Down
8 changes: 4 additions & 4 deletions .tekton/openshift-builds-image-bundler-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ metadata:
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" &&
target_branch == "builds-1.1" &&
target_branch == "builds-1.2" &&
(
files.all.exists(x, x.matches('cmd/bundle/|pkg/bundle/|pkg/image/|.konflux/image-bundler/')) ||
files.all.exists(x, x.matches('go.mod|go.sum')) ||
files.all.exists(x, x.matches('.tekton/openshift-builds-image-bundler-pull-request.yaml'))
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-builds-1-1
appstudio.openshift.io/component: openshift-builds-image-bundler-1-1
appstudio.openshift.io/application: openshift-builds-1-2
appstudio.openshift.io/component: openshift-builds-image-bundler-1-2
pipelines.appstudio.openshift.io/type: build
name: openshift-builds-image-bundler-on-pull-request
namespace: rh-openshift-builds-tenant
Expand All @@ -29,7 +29,7 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-image-bundler-1-1:on-pr-{{revision}}
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-image-bundler-1-2:on-pr-{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
Expand Down
8 changes: 4 additions & 4 deletions .tekton/openshift-builds-image-bundler-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ metadata:
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push" &&
target_branch == "builds-1.1" &&
target_branch == "builds-1.2" &&
(
files.all.exists(x, x.matches('cmd/bundle/|pkg/bundle/|pkg/image/|.konflux/image-bundler/')) ||
files.all.exists(x, x.matches('go.mod|go.sum')) ||
files.all.exists(x, x.matches('.tekton/openshift-builds-image-bundler-push.yaml'))
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-builds-1-1
appstudio.openshift.io/component: openshift-builds-image-bundler-1-1
appstudio.openshift.io/application: openshift-builds-1-2
appstudio.openshift.io/component: openshift-builds-image-bundler-1-2
pipelines.appstudio.openshift.io/type: build
name: openshift-builds-image-bundler-on-push
namespace: rh-openshift-builds-tenant
Expand All @@ -28,7 +28,7 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-image-bundler-1-1:{{revision}}
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-image-bundler-1-2:{{revision}}
- name: dockerfile
value: .konflux/image-bundler/Dockerfile
- name: build-source-image
Expand Down
8 changes: 4 additions & 4 deletions .tekton/openshift-builds-image-processing-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ metadata:
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" &&
target_branch == "builds-1.1" &&
target_branch == "builds-1.2" &&
(
files.all.exists(x, x.matches('cmd/image-processing/|pkg/image/|.konflux/image-processing/')) ||
files.all.exists(x, x.matches('go.mod|go.sum')) ||
files.all.exists(x, x.matches('.tekton/openshift-builds-image-processing-pull-request.yaml'))
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-builds-1-1
appstudio.openshift.io/component: openshift-builds-image-processing-1-1
appstudio.openshift.io/application: openshift-builds-1-2
appstudio.openshift.io/component: openshift-builds-image-processing-1-2
pipelines.appstudio.openshift.io/type: build
name: openshift-builds-image-processing-on-pull-request
namespace: rh-openshift-builds-tenant
Expand All @@ -29,7 +29,7 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-image-processing-1-1:on-pr-{{revision}}
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-image-processing-1-2:on-pr-{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
Expand Down
8 changes: 4 additions & 4 deletions .tekton/openshift-builds-image-processing-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ metadata:
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push" &&
target_branch == "builds-1.1" &&
target_branch == "builds-1.2" &&
(
files.all.exists(x, x.matches('cmd/image-processing/|pkg/image/|.konflux/image-processing/')) ||
files.all.exists(x, x.matches('go.mod|go.sum')) ||
files.all.exists(x, x.matches('.tekton/openshift-builds-image-processing-push.yaml'))
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-builds-1-1
appstudio.openshift.io/component: openshift-builds-image-processing-1-1
appstudio.openshift.io/application: openshift-builds-1-2
appstudio.openshift.io/component: openshift-builds-image-processing-1-2
pipelines.appstudio.openshift.io/type: build
name: openshift-builds-image-processing-on-push
namespace: rh-openshift-builds-tenant
Expand All @@ -28,7 +28,7 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-image-processing-1-1:{{revision}}
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-image-processing-1-2:{{revision}}
- name: dockerfile
value: .konflux/image-processing/Dockerfile
- name: build-source-image
Expand Down
8 changes: 4 additions & 4 deletions .tekton/openshift-builds-waiter-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ metadata:
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" &&
target_branch == "builds-1.1" &&
target_branch == "builds-1.2" &&
(
files.all.exists(x, x.matches('cmd/waiter/|.konflux/waiter/')) ||
files.all.exists(x, x.matches('go.mod|go.sum')) ||
files.all.exists(x, x.matches('.tekton/openshift-builds-waiter-pull-request.yaml'))
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-builds-1-1
appstudio.openshift.io/component: openshift-builds-waiter-1-1
appstudio.openshift.io/application: openshift-builds-1-2
appstudio.openshift.io/component: openshift-builds-waiter-1-2
pipelines.appstudio.openshift.io/type: build
name: openshift-builds-waiter-on-pull-request
namespace: rh-openshift-builds-tenant
Expand All @@ -29,7 +29,7 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-waiter-1-1:on-pr-{{revision}}
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-waiter-1-2:on-pr-{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
Expand Down
8 changes: 4 additions & 4 deletions .tekton/openshift-builds-waiter-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ metadata:
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push" &&
target_branch == "builds-1.1" &&
target_branch == "builds-1.2" &&
(
files.all.exists(x, x.matches('cmd/waiter/|.konflux/waiter/')) ||
files.all.exists(x, x.matches('go.mod|go.sum')) ||
files.all.exists(x, x.matches('.tekton/openshift-builds-waiter-push.yaml'))
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-builds-1-1
appstudio.openshift.io/component: openshift-builds-waiter-1-1
appstudio.openshift.io/application: openshift-builds-1-2
appstudio.openshift.io/component: openshift-builds-waiter-1-2
pipelines.appstudio.openshift.io/type: build
name: openshift-builds-waiter-on-push
namespace: rh-openshift-builds-tenant
Expand All @@ -28,7 +28,7 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-waiter-1-1:{{revision}}
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-waiter-1-2:{{revision}}
- name: dockerfile
value: .konflux/waiter/Dockerfile
- name: build-source-image
Expand Down
8 changes: 4 additions & 4 deletions .tekton/openshift-builds-webhook-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ metadata:
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" &&
target_branch == "builds-1.1" &&
target_branch == "builds-1.2" &&
(
files.all.exists(x, x.matches('version/|pkg/webhook/|pkg/ctxlog/|cmd/shipwright-build-webhook/|.konflux/webhook/')) ||
files.all.exists(x, x.matches('go.mod|go.sum')) ||
files.all.exists(x, x.matches('.tekton/openshift-builds-webhook-pull-request.yaml'))
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-builds-1-1
appstudio.openshift.io/component: openshift-builds-webhook-1-1
appstudio.openshift.io/application: openshift-builds-1-2
appstudio.openshift.io/component: openshift-builds-webhook-1-2
pipelines.appstudio.openshift.io/type: build
name: openshift-builds-webhook-on-pull-request
namespace: rh-openshift-builds-tenant
Expand All @@ -29,7 +29,7 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-webhook-1-1:on-pr-{{revision}}
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-webhook-1-2:on-pr-{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
Expand Down
8 changes: 4 additions & 4 deletions .tekton/openshift-builds-webhook-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ metadata:
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push" &&
target_branch == "builds-1.1" &&
target_branch == "builds-1.2" &&
(
files.all.exists(x, x.matches('version/|pkg/webhook/|pkg/ctxlog/|cmd/shipwright-build-webhook/|.konflux/webhook/')) ||
files.all.exists(x, x.matches('go.mod|go.sum')) ||
files.all.exists(x, x.matches('.tekton/openshift-builds-webhook-push.yaml'))
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-builds-1-1
appstudio.openshift.io/component: openshift-builds-webhook-1-1
appstudio.openshift.io/application: openshift-builds-1-2
appstudio.openshift.io/component: openshift-builds-webhook-1-2
pipelines.appstudio.openshift.io/type: build
name: openshift-builds-webhook-on-push
namespace: rh-openshift-builds-tenant
Expand All @@ -28,7 +28,7 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-webhook-1-1:{{revision}}
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds-webhook-1-2:{{revision}}
- name: dockerfile
value: .konflux/webhook/Dockerfile
- name: build-source-image
Expand Down

0 comments on commit 198c6b2

Please sign in to comment.