-
Output result in YAML
jsonnet ci/pipeline.jsonnet
-
Using external file as parameters
jsonnet --ext-code-file "config=ci/config/de1/settings.libsonnet" ci/pipeline.jsonnet
where
ci/config/de1/settings.libsonnet
is the 'parameter file' andci/pipeline.jsonnet
is what needs to be parametrized.Within the parametrized
.jsonnet
:local config = std.extVar('config'); { vcenter_password: config.vcenter_password }
FROM robotgraves/flycli AS builder
RUN apt-get install -y build-essential git
WORKDIR /opt
RUN git clone https://github.com/google/jsonnet.git jsonnet
RUN cd jsonnet && make
FROM robotgraves/flycli
COPY --from=builder /opt/jsonnet/jsonnet /usr/local/bin