[duplicate] Drone jsonnet --stream create a JSON string like file, not a YAML

Hello everyone

I’m using drone 1.3.0
I suppose to get a YAML file after I execute “drone jsonnet --stream” with my .drone.jsonnet file. But what I really got is a JSON like file.

{
   "kind": "pipeline",
   "name": "setup_staging",
   "steps": [
      {
         "commands": [
            "echo $XXX_KEY_FILE | base64 -d > $XXX_KEY_PATH",
            .
            .
            .
         ],
         "environment": {
            "XXX_ACCESS_KEY_ID": {
               "from_secret": "XXX-access-key"
                 .
                 .
                 .
            },
            .
            .
            .
       ],
       .
       .
       .
}

Does anyone have the same experience or any idea of this? Thanks

This is a duplicate of Drone CLI is outputting raw data when using `drone jsonnet` - #2 by mknapcok

1 Like