Skip to content

Convert those pesky yaml templates and env files into a usable yaml file

Notifications You must be signed in to change notification settings

miningape/env-to-yaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

env-to-yaml

A tool allowing the insertion of env vars into a yml file.

Installation

npm link

Usage

env2yml -e {path-to-env-file} -y {path-to-yml} -o {path-to-output}

For example imagine you are in a directory with 2 files: ./.env

SECRET=secret

And ./config.yaml

property:
  value: ${SECRET}

We can use this command to insert the env var SECRET defined in .env into property.value in config.yaml and dump the output of this operation in out.yaml:

env2yaml -e .env -y config.yaml -o out.yaml

./out.yaml

property:
  value: secret

About

Convert those pesky yaml templates and env files into a usable yaml file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published