Last active
March 24, 2020 07:10
-
-
Save ahpook/77f7c9dd9facd4bc725e5d1bf24a1d75 to your computer and use it in GitHub Desktop.
Conditional pipelinerun - example tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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