-
-
Save SugandhaAgrawal/27b3676f153a319a06cf95459017c4ae to your computer and use it in GitHub Desktop.
This file contains 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/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