on-pullrequest.yaml
1 apiVersion: tekton.dev/v1beta1 2 kind: PipelineRun 3 metadata: 4 name: on-pullrequest 5 annotations: 6 pipelinesascode.tekton.dev/on-event: "[pull_request]" 7 pipelinesascode.tekton.dev/on-target-branch: "main" 8 pipelinesascode.tekton.dev/task: "[git-clone, buildah, .tekton/tasks/e2e-telemetry-test.yaml, .tekton/tasks/unit-pytest.yaml]" 9 pipelinesascode.tekton.dev/max-keep-runs: "5" 10 11 spec: 12 params: 13 - name: repo_url 14 value: "{{ repo_url }}" 15 - name: revision 16 value: "{{ revision }}" 17 taskRunSpecs: 18 - pipelineTaskName: build 19 taskServiceAccountName: pipelines-sa-userid-1000 20 - pipelineTaskName: push-to-quay 21 taskServiceAccountName: pipelines-sa-userid-1000 22 pipelineSpec: 23 params: 24 - name: repo_url 25 - name: revision 26 workspaces: 27 - name: source 28 tasks: 29 - name: fetch-repository 30 taskRef: 31 name: git-clone 32 workspaces: 33 - name: output 34 workspace: source 35 params: 36 - name: url 37 value: $(params.repo_url) 38 - name: revision 39 value: $(params.revision) 40 41 - name: e2e-tests 42 runAfter: 43 - fetch-repository 44 taskRef: 45 name: e2e-telemetry-test 46 workspaces: 47 - name: source 48 workspace: source 49 50 - name: unit-tests 51 runAfter: 52 - fetch-repository 53 taskRef: 54 name: unit-pytest 55 workspaces: 56 - name: source 57 workspace: source 58 59 - name: build 60 taskRef: 61 name: buildah-as-userid-1000 62 kind: ClusterTask 63 runAfter: 64 - e2e-tests 65 - unit-tests 66 params: 67 - name: IMAGE 68 value: image-registry.openshift-image-registry.svc:5000/$(context.pipelineRun.namespace)/paddock:$(params.revision) 69 - name: BUILDER_IMAGE 70 value: registry.access.redhat.com/ubi9/buildah@sha256:8b1144b8534507a4b7e71d11174b483c373906828fca669978a3aa63b63af6e3 71 - name: DOCKERFILE 72 value: Containerfile 73 - name: CONTEXT 74 value: components/paddock 75 workspaces: 76 - name: source 77 workspace: source 78 79 - name: push-to-quay 80 taskRef: 81 kind: ClusterTask 82 name: skopeo-copy 83 runAfter: 84 - build 85 params: 86 - name: srcImageURL 87 value: docker://image-registry.openshift-image-registry.svc:5000/$(context.pipelineRun.namespace)/paddock:$(params.revision) 88 - name: destImageURL 89 value: docker://quay.io/b4mad/paddock:$(params.revision) 90 - name: srcTLSverify 91 value: "false" 92 - name: destTLSverify 93 value: "false" 94 workspaces: 95 - name: images-url 96 workspace: images-url 97 98 workspaces: 99 - name: source 100 volumeClaimTemplate: 101 spec: 102 accessModes: 103 - ReadWriteOnce 104 resources: 105 requests: 106 storage: 1Gi 107 - name: images-url 108 emptyDir: {}