-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allowing on cluster build for go runtime (#1445)
* allowing on cluster build for go runtime * warning message added for go and rust builder * gofmt * fixups Signed-off-by: Matej Vasek <[email protected]> --------- Signed-off-by: Matej Vasek <[email protected]> Co-authored-by: Matej Vasek <[email protected]>
- Loading branch information
1 parent
24fe6d3
commit 2463202
Showing
5 changed files
with
40 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,12 +34,16 @@ git remote add origin [email protected]:my-repo/my-function.git | |
``` | ||
4. Update the Function configuration in `func.yaml` to enable on cluster builds for the Git repository: | ||
```yaml | ||
build: git # required, specify `git` build type | ||
git: | ||
url: https://github.com/my-repo/my-function.git # required, git repository with the function source code | ||
revision: main # optional, git revision to be used (branch, tag, commit) | ||
# contextDir: myfunction # optional, needed only if the function is not located | ||
# in the repository root folder | ||
build: | ||
git: | ||
url: https://github.com/my-repo/my-function.git # required, git repository with the function source code | ||
revision: main # optional, git revision to be used (branch, tag, commit) | ||
# contextDir: myfunction # optional, needed only if the function is not located in the repository root folder | ||
# builderImages: # optional, needed only if the runtime is golang | ||
# pack: ghcr.io/boson-project/go-function-builder:tip | ||
buildpacks: [] | ||
builder: "" | ||
buildEnvs: [] | ||
``` | ||
5. Implement the business logic of your Function, then commit and push changes | ||
```bash | ||
|
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
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
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
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