https://github.com/cobbzilla/merge-yml
merge multiple yml files into a single file
https://github.com/cobbzilla/merge-yml
Last synced: 10 months ago
JSON representation
merge multiple yml files into a single file
- Host: GitHub
- URL: https://github.com/cobbzilla/merge-yml
- Owner: cobbzilla
- License: apache-2.0
- Created: 2013-03-20T04:32:41.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2023-03-22T20:07:35.000Z (over 3 years ago)
- Last Synced: 2024-04-16T18:57:52.362Z (about 2 years ago)
- Language: Java
- Size: 2.99 MB
- Stars: 20
- Watchers: 5
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
merge-yml
=========
Merge multiple YML files into a single file, and substitute for any environment variables found
(c) Copyright 2013 Jonathan Cobb.
This code is available under the Apache License, version 2: http://www.apache.org/licenses/LICENSE-2.0.html
## Build
mvn -P uberjar package
Requires 'maven' build automation tool.
Install maven on OS X using [homebrew](http://brew.sh/): `brew install maven`
## Usage
./bin/merge-yml.sh file1.yml file2.yml ... > merged-result.yml
Files are merged in order, such that files listed later will override files listed earlier.
The merged result is written to stdout. Logs (for info & errors) are written to stderr.
Within the YML files to be merged, you may include references to system environment variables using
mustache-style syntax, for example:
callbackUrl: http://www.{{DEPLOY_HOST_NAME}}.example.com:8102/my_callback
Then make sure you've exported the DEPLOY_HOST_NAME environment variable to whatever place you invoke
merge-yml from.