Skip to content

Instantly share code, notes, and snippets.

@ndeloof
Created June 7, 2019 08:19
Show Gist options
  • Save ndeloof/fabaeb48f9c2acc97b4be7f935a800c5 to your computer and use it in GitHub Desktop.
Save ndeloof/fabaeb48f9c2acc97b4be7f935a800c5 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