drone jsonnet

Updated 2 years ago by Admin

This subcommand converts a jsonnet configuration file to a yaml configuration file.

$ drone jsonnet --help
drone jsonnet - generate .drone.yml from jsonnet

drone jsonnet [command options] [path/to/.drone.jsonnet]

--source value Source file (default: ".drone.jsonnet")
--target value target file (default: ".drone.yml")
--stream Write output as a YAML stream.
--format Write output as formatted YAML
--stdout Write output to stdout
--string Expect a string, manifest as plain text

Example prints the yaml file to stdout

$ drone jsonnet --stdout

Example prints a multi-document yaml to stdout

$ drone jsonnet --stdout --stream

How did we do?