diff --git a/.tekton/cli-its-pull-request.yaml b/.tekton/cli-its-pull-request.yaml new file mode 100644 index 000000000..ece6f3a3d --- /dev/null +++ b/.tekton/cli-its-pull-request.yaml @@ -0,0 +1,54 @@ +apiVersion: tekton.dev/v1 +kind: PipelineRun +metadata: + annotations: + build.appstudio.openshift.io/repo: https://github.com/conforma/cli?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/cancel-in-progress: "true" + pipelinesascode.tekton.dev/max-keep-runs: "3" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull_request" && target_branch == "main" && + ("pipelines/enterprise-contract/**".pathChanged() || + ".tekton/cli-its-pull-request.yaml".pathChanged()) + labels: + appstudio.openshift.io/application: ec-main + appstudio.openshift.io/component: cli-main + pipelines.appstudio.openshift.io/type: test + name: cli-its-on-pull-request + namespace: rhtap-contract-tenant +spec: + params: + - name: git-url + value: https://github.com/conforma/e2e-tests.git + - name: revision + value: 715c96ced8341ce10f5ab5b800ddcdec8b3d9e79 + - name: oci-container-repo + value: quay.io/conforma/e2e-tests + - name: oci-container-repo-credentials-secret + value: konflux-test-infra + - name: aws-credentials-secret + value: mapt-kind-secret + - name: deprovision-aws-credentials-secret + value: mapt-kind-secret + - name: its-pipeline-repo-url + value: '{{source_url}}' + - name: its-pipeline-revision + value: '{{revision}}' + - name: its-pipeline-path + value: pipelines/enterprise-contract/0.1/enterprise-contract.yaml + - name: test-label-filter + value: its-pipeline + # Keep the runner and test-suite revisions pinned to the same reviewed commit. + pipelineRef: + resolver: git + params: + - name: url + value: https://github.com/conforma/e2e-tests.git + - name: revision + value: 715c96ced8341ce10f5ab5b800ddcdec8b3d9e79 + - name: pathInRepo + value: .tekton/pipelines/conforma-e2e/pipeline.yaml + taskRunTemplate: + serviceAccountName: konflux-integration-runner