Skip to content

Instantly share code, notes, and snippets.

@ndeloof
Created June 7, 2019 08:19
Show Gist options
  • Save ndeloof/bb2ffb5b995607e40575aca90ac6d4f3 to your computer and use it in GitHub Desktop.
Save ndeloof/bb2ffb5b995607e40575aca90ac6d4f3 to your computer and use it in GitHub Desktop.
Tekton Hello-world
apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
name: say-hello
spec:
inputs:
params:
- name: who
description: who to say hello
default: kitty
steps:
- name: say hello
image: alpine
command:
- /bin/echo
args:
- "Hello ${inputs.params.who}"
---
apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
name: demo-pipeline
spec:
tasks:
- name: say-hello-world
taskRef:
name: say-hello
params:
- name: who
value: world
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineRun
metadata:
name: demo-pipeline-run-1
spec:
pipelineRef:
name: demo-pipeline
serviceAccount: 'default'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment