Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
apiVersion: tekton.dev/v1alpha1
kind: TaskRun
metadata:
name: task-run-helloworld
spec:
serviceAccount: serviceaccount-tekton
taskRef:
name: task-build
trigger:
type: manual
inputs:
resources:
- name: docker-source
resourceRef:
name: ow-git
params:
- name: TARGET_IMAGE_NAME
value: "docker.io/<your docker namespace>/nodejs-10-helloworld"
- name: DOCKERFILE
value: "./docker-source/core/nodejs10Action/knative/Dockerfile"
- name: OW_ACTION_NAME
value: "helloworld"
- name: OW_ACTION_CODE
value: "function main() {return {payload: 'Hello World!'};}"
outputs:
resources:
- name: builtImage
resourceRef:
name: ow-registry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment