mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-11-20 19:07:17 +01:00
Update build.sh
This commit is contained in:
parent
9bda1810a6
commit
476c00d129
@ -20,6 +20,8 @@ rm -rf manifests
|
||||
mkdir -p manifests/setup
|
||||
|
||||
# optional, but we would like to generate yaml, not json
|
||||
$JSONNET_BIN -J vendor -m manifests "${1-example.jsonnet}" | xargs -I{} sh -c 'cat {} | $(go env GOPATH)/bin/gojsontoyaml > {}.yaml; rm -f {}' -- {}
|
||||
for file in $(find manifests -type f ! -name '*.yaml'); do
|
||||
cat "$file" | $(go env GOPATH)/bin/gojsontoyaml > "$file.yaml" && rm -f "$file"
|
||||
done
|
||||
# Clean-up json files from manifests dir
|
||||
find manifests -type f ! -name '*.yaml' -delete
|
||||
find manifests -type f ! -name '*.yaml' -delete
|
||||
|
Loading…
Reference in New Issue
Block a user