-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build-binaries only builds final binary files
Signed-off-by: Joao Pereira <[email protected]>
- Loading branch information
1 parent
4fe13b0
commit b5c917e
Showing
5 changed files
with
25 additions
and
28 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -e -x -u | ||
|
||
# build website assets | ||
rm -f pkg/website/generated.go | ||
( | ||
# Use newly built binary to template all website assets | ||
# into a single Go file | ||
cd pkg/website | ||
go run ./../../cmd/ytt \ | ||
-f . \ | ||
-f ../../examples/playground/basics \ | ||
-f ../../examples/playground/overlays \ | ||
-f ../../examples/playground/getting-started \ | ||
--file-mark 'alt-example**/*:type=data' \ | ||
--file-mark 'example**/*:type=data' \ | ||
--file-mark 'generated.go.txt:exclusive-for-output=true' \ | ||
--dangerous-emptied-output-directory ../../tmp/ | ||
) | ||
mv tmp/generated.go.txt pkg/website/generated.go |