Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APPSRE-10981 konflux debug-container #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
58 changes: 58 additions & 0 deletions .tekton/debug-container-master-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
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/debug-container-master-push.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/
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: {}
workspaces:
- name: workspace
volumeClaimTemplate:
metadata:
creationTimestamp: null
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
status: {}
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'
status: {}
55 changes: 55 additions & 0 deletions .tekton/debug-container-master-push.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/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'))
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: .
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: {}
workspaces:
- name: workspace
volumeClaimTemplate:
metadata:
creationTimestamp: null
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
status: {}
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'
status: {}
2 changes: 1 addition & 1 deletion debug-container/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2
0.3