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