Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
quxegdsa committed Dec 4, 2024
2 parents 8e69ebd + 093fd5d commit 227faaf
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions push.yaml
Original file line number Diff line number Diff line change
@@ -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 }}"

0 comments on commit 227faaf

Please sign in to comment.