From 387923e4f19d20fc99aa798cfca4ab3fc9c0d713 Mon Sep 17 00:00:00 2001 From: Karl Fischer Date: Thu, 10 Oct 2024 15:09:08 +0200 Subject: [PATCH] APPSRE-10981 konflux debug-container --- .../debug-container-master-pull-request.yaml | 58 +++++++++++++++++++ .tekton/debug-container-master-push.yaml | 55 ++++++++++++++++++ debug-container/VERSION | 2 +- 3 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 .tekton/debug-container-master-pull-request.yaml create mode 100644 .tekton/debug-container-master-push.yaml diff --git a/.tekton/debug-container-master-pull-request.yaml b/.tekton/debug-container-master-pull-request.yaml new file mode 100644 index 0000000..a3da364 --- /dev/null +++ b/.tekton/debug-container-master-pull-request.yaml @@ -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: {} diff --git a/.tekton/debug-container-master-push.yaml b/.tekton/debug-container-master-push.yaml new file mode 100644 index 0000000..ffb048a --- /dev/null +++ b/.tekton/debug-container-master-push.yaml @@ -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: {} diff --git a/debug-container/VERSION b/debug-container/VERSION index 3b04cfb..be58634 100644 --- a/debug-container/VERSION +++ b/debug-container/VERSION @@ -1 +1 @@ -0.2 +0.3