Update build.sh

master
Yesid Leonardo López Sierra 3 months ago committed by Carlos Eduardo
parent 9bda1810a6
commit 476c00d129
  1. 6
      scripts/build.sh

@ -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…
Cancel
Save