-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build functions with simple go commands
- Loading branch information
1 parent
0096f6d
commit 47eff27
Showing
2 changed files
with
19 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
set -e -x -u | ||
|
||
cd carvel-ytt | ||
#go mod init ytt-submodule-playground | ||
#go fmt $(go list ./... | grep -v yaml.v2) | ||
go mod vendor | ||
go mod tidy | ||
export GOOS=linux GOARCH=amd64 | ||
ls | ||
cd cmd/ytt && go build -o ../../../netlify/functions/ytt && cd - | ||
cd cmd/ytt-lambda-website && go build -o ../../../netlify/functions/main && cd - | ||
cd .. | ||
ls | ||
chmod +x netlify/functions/ytt netlify/functions/main | ||
|
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