diff --git a/.tekton/test-rhtap.yaml b/.tekton/test-rhtap.yaml new file mode 100644 index 000000000..f85354a5f --- /dev/null +++ b/.tekton/test-rhtap.yaml @@ -0,0 +1,66 @@ +--- +apiVersion: tekton.dev/v1beta1 +kind: PipelineRun +metadata: + name: cachi2-test-rhtap-latest + annotations: + 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-event: "[pull_request]" + pipelinesascode.tekton.dev/on-target-branch: "[main]" +spec: + params: + - name: revision + value: "{{revision}}" + - name: slack-webhook-notification-team + value: build + pipelineSpec: + params: + - name: revision + tasks: + - name: tag-with-latest + params: + - name: revision + value: "$(params.revision)" + timeout: "15m" + taskSpec: + params: + - name: revision + steps: + - name: tag-with-latest + image: registry.access.redhat.com/ubi9/skopeo:latest@sha256:23c9ed4af1f42614bdc56309452568b2110a67f23102f42f6a6582a63b63dcdb + script: | + #!/usr/bin/env bash + git clone https://github.com/containerbuildsystem/cachi2.git + cp --recursive --reflink cachi2 /tmp/cachi2-reflink + + filefrag -v cachi2/LICENSE + filefrag -v /tmp/cachi2-reflink/LICENSE + + rm -rf /tmp/cachi2-reflink + rm -rf cachi2 + finally: + - name: slack-webhook-notification + taskRef: + resolver: bundles + params: + - name: name + value: slack-webhook-notification + - name: bundle + value: quay.io/redhat-appstudio-tekton-catalog/task-slack-webhook-notification:0.1 + - name: kind + value: task + when: + - input: $(tasks.status) + operator: in + values: ["Failed"] + params: + - name: message + value: |- + Tekton pipelineRun $(context.pipelineRun.name) failed. + See https://console-openshift-console.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/k8s/ns/tekton-ci/tekton.dev~v1beta1~PipelineRun/$(context.pipelineRun.name) + (Quick! It may disappear soon!) + - name: key-name + value: $(params.slack-webhook-notification-team) +