Skip to content

Instantly share code, notes, and snippets.

@coyote240
Last active February 16, 2021 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coyote240/43755cf8084865e8fa961b33e0946611 to your computer and use it in GitHub Desktop.
Save coyote240/43755cf8084865e8fa961b33e0946611 to your computer and use it in GitHub Desktop.
Test Pipeline Run
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: {{ .Release.Name }}-test-git-clone
annotations:
"helm.sh/hook": test
spec:
pipelineSpec:
tasks:
- name: clone
taskRef:
name: git-clone
params:
- name: url
value: "git@github.com:kelseyhightower/nocode.git"
workspaces:
- name: output
workspace: output
- name: check
runAfter:
- clone
taskSpec:
steps:
- name: check-code
image: busybox:stable
script: |
stat $(workspaces.output.path)/README.md
workspaces:
- name: shared-data
workspaces:
- name: shared-data
workspace: output
workspaces:
- name: output
workspaces:
- name: output
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment