Skip to content

Commit

Permalink
Update pipeline for z-stream support
Browse files Browse the repository at this point in the history
Changes:
- Update application, component and PAC branch to allow CI to build from z-stream.
  • Loading branch information
sayan-biswas committed Jul 9, 2024
1 parent ce623e9 commit ed8399f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .tekton/openshift-builds-operator-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@ apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/redhat-openshift-builds/operator?rev={{revision}}
build.appstudio.openshift.io/repo: https://github.com/sayan-biswas/openshift-builds-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/task: "[.tekton/openshift-builds-operator-unit-test.yaml]"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" &&
target_branch == "main" &&
target_branch == "builds-1.1" &&
files.all.exists(x, x.matches('.tekton/|api/|internal/|test/')) ||
files.all.exists(x, x.matches('main.go|go.mod|go.sum|Dockerfile')) ||
files.all.exists(x, x.matches('.tekton/openshift-builds-operator-unit-test.yaml')) ||
files.all.exists(x, x.matches('.tekton/openshift-builds-operator-pull-request.yaml'))
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-builds
appstudio.openshift.io/component: openshift-builds-operator
appstudio.openshift.io/application: openshift-builds-1-1
appstudio.openshift.io/component: openshift-builds-operator-1-1
pipelines.appstudio.openshift.io/type: build
name: openshift-builds-operator-on-pull-request
namespace: rh-openshift-builds-tenant
namespace: rh-ee-sabiswas-tenant
spec:
params:
- name: git-url
value: '{{source_url}}'
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds/openshift-builds-operator:on-pr-{{revision}}
value: quay.io/redhat-user-workloads/rh-ee-sabiswas-tenant/openshift-builds/openshift-builds-operator:on-pr-{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
Expand Down
12 changes: 6 additions & 6 deletions .tekton/openshift-builds-operator-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,33 @@ apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/redhat-openshift-builds/operator?rev={{revision}}
build.appstudio.openshift.io/repo: https://github.com/sayan-biswas/openshift-builds-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/task: "[.tekton/openshift-builds-operator-unit-test.yaml]"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push" &&
target_branch == "main" &&
target_branch == "builds-1.1" &&
files.all.exists(x, x.matches('.tekton/|api/|internal/|test/')) ||
files.all.exists(x, x.matches('main.go|go.mod|go.sum|Dockerfile')) ||
files.all.exists(x, x.matches('.tekton/openshift-builds-operator-unit-test.yaml')) ||
files.all.exists(x, x.matches('.tekton/openshift-builds-operator-push.yaml'))
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-builds
appstudio.openshift.io/component: openshift-builds-operator
appstudio.openshift.io/application: openshift-builds-1-1
appstudio.openshift.io/component: openshift-builds-operator-1-1
pipelines.appstudio.openshift.io/type: build
name: openshift-builds-operator-on-push
namespace: rh-openshift-builds-tenant
namespace: rh-ee-sabiswas-tenant
spec:
params:
- name: git-url
value: '{{source_url}}'
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/rh-openshift-builds-tenant/openshift-builds/openshift-builds-operator:{{revision}}
value: quay.io/redhat-user-workloads/rh-ee-sabiswas-tenant/openshift-builds/openshift-builds-operator:{{revision}}
- name: dockerfile
value: Dockerfile
pipelineSpec:
Expand Down

0 comments on commit ed8399f

Please sign in to comment.