Skip to content

Instantly share code, notes, and snippets.

@SugandhaAgrawal
Last active June 28, 2019 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SugandhaAgrawal/27b3676f153a319a06cf95459017c4ae to your computer and use it in GitHub Desktop.
Save SugandhaAgrawal/27b3676f153a319a06cf95459017c4ae to your computer and use it in GitHub Desktop.
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