Skip to content

Single configuration file #76

@sestrella

Description

@sestrella

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/production

Then we could change the CLI to take a section as an argument:

$ stack exec hap -- deploy staging
$ stack exec hap -- deploy production
``

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions