-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Most of the settings across different deployment scripts such as staging.yaml and production.yaml are the same. Usually, they only differ in the name of the branch, therefore I would like to propose to use a single configuration file with different sections instead of separate files, the format might look like:
repo: git@github.com:<org>/<repo>
build_script:
- stack setup
- stack build
restart_command: <restart command>
staging:
revision: origin/master
production:
revision: origin/productionThen we could change the CLI to take a section as an argument:
$ stack exec hap -- deploy staging
$ stack exec hap -- deploy production
``