Skip to content
Snippets Groups Projects
Commit be4b5257 authored by Damien Grisonnet's avatar Damien Grisonnet
Browse files

build.sh: fix json files cleanup

parent 07041352
No related branches found
No related tags found
No related merge requests found
...@@ -243,8 +243,12 @@ PATH="$(pwd)/tmp/bin:${PATH}" ...@@ -243,8 +243,12 @@ PATH="$(pwd)/tmp/bin:${PATH}"
rm -rf manifests rm -rf manifests
mkdir -p manifests/setup mkdir -p manifests/setup
# optional, but we would like to generate yaml, not json # Calling gojsontoyaml is optional, but we would like to generate yaml, not json
jsonnet -J vendor -m manifests "${1-example.jsonnet}" | xargs -I{} sh -c 'cat {} | gojsontoyaml > {}.yaml; rm -f {}' -- {} jsonnet -J vendor -m manifests "${1-example.jsonnet}" | xargs -I{} sh -c 'cat {} | gojsontoyaml > {}.yaml' -- {}
# Make sure to remove json files
find manifests -type f ! -name '*.yaml' -delete
rm kustomization
``` ```
......
...@@ -14,6 +14,10 @@ PATH="$(pwd)/tmp/bin:${PATH}" ...@@ -14,6 +14,10 @@ PATH="$(pwd)/tmp/bin:${PATH}"
rm -rf manifests rm -rf manifests
mkdir -p manifests/setup mkdir -p manifests/setup
# optional, but we would like to generate yaml, not json # Calling gojsontoyaml is optional, but we would like to generate yaml, not json
jsonnet -J vendor -m manifests "${1-example.jsonnet}" | xargs -I{} sh -c 'cat {} | gojsontoyaml > {}.yaml; rm -f {}' -- {} jsonnet -J vendor -m manifests "${1-example.jsonnet}" | xargs -I{} sh -c 'cat {} | gojsontoyaml > {}.yaml' -- {}
# Make sure to remove json files
find manifests -type f ! -name '*.yaml' -delete
rm kustomization
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment