diff --git a/.tekton/repository.yaml b/.tekton/repository.yaml new file mode 100644 index 0000000..030e9f0 --- /dev/null +++ b/.tekton/repository.yaml @@ -0,0 +1,6 @@ +apiVersion: pipelinesascode.tekton.dev/v1alpha1 +kind: Repository +metadata: + name: micropipenv +spec: + url: https://github.com/goern/micropipenv diff --git a/.tekton/tox-on-pr.yaml b/.tekton/tox-on-pr.yaml new file mode 100644 index 0000000..2609fa9 --- /dev/null +++ b/.tekton/tox-on-pr.yaml @@ -0,0 +1,42 @@ +--- +apiVersion: tekton.dev/v1beta1 +kind: PipelineRun +metadata: + name: tox-on-pr + annotations: + pipelinesascode.tekton.dev/on-event: "[pull_request]" + pipelinesascode.tekton.dev/on-target-branch: "[master]" + pipelinesascode.tekton.dev/task: "[git-clone]" +spec: + params: + - name: repo_url + value: "{{repo_url}}" + - name: revision + value: "{{revision}}" + pipelineSpec: + params: + - name: repo_url + - name: revision + tasks: + - name: fetch-repository + params: + - name: url + value: $(params.repo_url) + - name: revision + value: $(params.revision) + taskRef: + name: git-clone + workspaces: + - name: output + workspace: source + workspaces: + - name: source + workspaces: + - name: source + volumeClaimTemplate: + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi