diff --git a/push.yaml b/push.yaml new file mode 100644 index 00000000..db9f5222 --- /dev/null +++ b/push.yaml @@ -0,0 +1,64 @@ +apiVersion: tekton.dev/v1 +kind: PipelineRun +metadata: + annotations: + pipelinesascode.tekton.dev/max-keep-runs: "5" + pipelinesascode.tekton.dev/on-event: pull_request + pipelinesascode.tekton.dev/on-target-branch: main + pipelinesascode.tekton.dev/task: git-clone + name: pipelinerun-generic +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 + - name: basic-auth + workspace: basic-auth + - displayName: Task with no effect + name: noop-task + runAfter: + - fetch-repository + taskSpec: + steps: + - image: registry.access.redhat.com/ubi9/ubi-micro + name: noop-task + script: | + exit 0 + workingDir: $(workspaces.source.path) + workspaces: + - name: source + workspaces: + - name: source + workspace: source + workspaces: + - name: source + - name: basic-auth + workspaces: + - name: source + volumeClaimTemplate: + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi + - name: basic-auth + secret: + secretName: "{{ git_auth_secret }}"