Skip to content

Commit

Permalink
APPSRE-10981 konflux debug-container
Browse files Browse the repository at this point in the history
  • Loading branch information
fishi0x01 committed Oct 10, 2024
1 parent 53f9eb8 commit 4586858
Show file tree
Hide file tree
Showing 4 changed files with 545 additions and 1 deletion.
55 changes: 55 additions & 0 deletions .tekton/debug-container-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/debug-container?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
== "master" && files.all.exists(x, x.matches('debug-container/|.tekton/debug-container-master-pull-request.yaml|.tekton/multi-arch-build-pipeline.yaml'))
creationTimestamp: null
labels:
appstudio.openshift.io/application: container-images-master
appstudio.openshift.io/component: debug-container-master
pipelines.appstudio.openshift.io/type: build
name: debug-container-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/container-images-master/debug-container-master:on-pr-{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
value: debug-container/Dockerfile
- name: path-context
value: debug-container/
- name: build-platforms
value:
- linux/x86_64
- linux/arm64
pipelineRef:
name: build-pipeline
taskRunTemplate: {}
workspaces:
- name: workspace
volumeClaimTemplate:
metadata:
creationTimestamp: null
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
status: {}
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'
status: {}
52 changes: 52 additions & 0 deletions .tekton/debug-container-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/github-mirror?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
== "master" && files.all.exists(x, x.matches('debug-container/VERSION|.tekton/debug-container-master-pull-request.yaml|.tekton/multi-arch-build-pipeline.yaml'))
creationTimestamp: null
labels:
appstudio.openshift.io/application: github-mirror-master
appstudio.openshift.io/component: github-mirror-master
pipelines.appstudio.openshift.io/type: build
name: github-mirror-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/github-mirror-master/github-mirror-master:{{revision}}
- name: dockerfile
value: Dockerfile
- name: path-context
value: .
- name: build-platforms
value:
- linux/x86_64
- linux/arm64
pipelineRef:
name: build-pipeline
taskRunTemplate: {}
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 4586858

Please sign in to comment.