Skip to content

Instantly share code, notes, and snippets.

@ahpook
Last active March 24, 2020 07:10
Show Gist options
  • Save ahpook/77f7c9dd9facd4bc725e5d1bf24a1d75 to your computer and use it in GitHub Desktop.
Save ahpook/77f7c9dd9facd4bc725e5d1bf24a1d75 to your computer and use it in GitHub Desktop.
Conditional pipelinerun - example tasks
---
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: create-readme-file
spec:
resources:
outputs:
- name: workspace
type: git
steps:
- name: write-new-stuff
image: ubuntu
script: 'touch $(resources.outputs.workspace.path)/README.md'
---
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: echo-hello
spec:
steps:
- name: echo
image: ubuntu
script: 'echo hello'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment