This change orchestrates function builds. Environments (in v2) define a builder image, just like they do a runtime image. The builder image contains a build script that's invoked with source and deployment paths (as env vars). The buildermgr watches for environments with build images defined, and creates build deployments and services. Functions can define source and deployment. Buildermgr watches for functions with source code (and build status == pending) and invokes the environment's builder when appropriate. It captures logs from the build and sets the build status (success/failure) and build lots into the PackageStatus.
4 lines
73 B
Bash
Executable File
4 lines
73 B
Bash
Executable File
#!/bin/bash
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o builder .
|
|
|