| apiVersion: build.knative.dev/v1alpha1 |
| kind: Build |
| metadata: |
| name: nodejs-10-helloworld-with-params |
| spec: |
| serviceAccountName: openwhisk-runtime-builder |
| source: |
| git: |
| url: "https://github.com/mrutkows/openwhisk-knative-build.git" |
| revision: "master" |
| template: |
| name: openwhisk-nodejs-runtime |
| arguments: |
| - name: TARGET_IMAGE_NAME |
| value: "docker.io/${DOCKER_USERNAME}/nodejs-10-helloworld-with-params" |
| - name: DOCKERFILE |
| value: "./runtimes/javascript/Dockerfile" |
| - name: OW_RUNTIME_DEBUG |
| value: "true" |
| - name: OW_ACTION_NAME |
| value: "nodejs-helloworld-with-params" |
| - name: OW_ACTION_CODE |
| value: "function main() {return {payload: 'Hello ' + params.name + ' from ' + params.place + '!'};}" |