Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .tekton/master-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/app-sre/git-partition-sync-consumer?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: "20"
pipelinesascode.tekton.dev/on-cel-expression: (event == "pull_request" && target_branch == "master") || (event == "push" && target_branch.startsWith("gh-readonly-queue/master/"))
labels:
appstudio.openshift.io/application: git-partition-sync-consumer-master
appstudio.openshift.io/component: git-partition-sync-consumer-master
pipelines.appstudio.openshift.io/type: build
name: git-partition-sync-consumer-master-on-pull-request
namespace: app-sre-tenant
spec:
params:
- name: git-url
value: '{{source_url}}'
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/app-sre-tenant/git-partition-sync-consumer-master/git-partition-sync-consumer-master:on-pr-{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
value: Dockerfile
- name: path-context
value: .
- name: target-stage
value: test
pipelineRef:
resolver: git
params:
- name: url
value: https://github.com/app-sre/shared-pipelines
- name: revision
value: main
- name: pathInRepo
value: pipelines/multi-arch-build-pipeline.yaml
taskRunTemplate:
serviceAccountName: build-pipeline-git-partition-sync-consumer-master
workspaces:
- name: workspace
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'
52 changes: 52 additions & 0 deletions .tekton/master-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/app-sre/git-partition-sync-consumer-master?rev={{revision}}
build.appstudio.redhat.com/commit_sha: '{{revision}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "20"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "master"
labels:
appstudio.openshift.io/application: git-partition-sync-consumer-master
appstudio.openshift.io/component: git-partition-sync-consumer-master
pipelines.appstudio.openshift.io/type: build
name: git-partition-sync-consumer-master-on-push
namespace: app-sre-tenant
spec:
params:
- name: git-url
value: '{{source_url}}'
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/app-sre-tenant/git-partition-sync-consumer-master/git-partition-sync-consumer-master:{{revision}}
- name: dockerfile
value: Dockerfile
- name: path-context
value: .
- name: target-stage
value: prod
pipelineRef:
resolver: git
params:
- name: url
value: https://github.com/app-sre/shared-pipelines
- name: revision
value: main
- name: pathInRepo
value: pipelines/multi-arch-build-pipeline.yaml
taskRunTemplate:
serviceAccountName: build-pipeline-git-partition-sync-consumer-master
workspaces:
- name: workspace
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'