Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple named deploy configurations #533

Open
preaction opened this issue Feb 25, 2017 · 0 comments
Open

Multiple named deploy configurations #533

preaction opened this issue Feb 25, 2017 · 0 comments

Comments

@preaction
Copy link
Owner

preaction commented Feb 25, 2017

A site should be able to have multiple, named deploy configurations. This would allow a site to have a "preview" or "staging" server along with a "production" server, each with different configurations. This can help with approval workflows.

To configure named deploys, the configuration file should accept a hash of deploys in addition to a single deploy:

site:
    $class: Statocles::Site
    deploy:
        preview:
            $class: Statocles::Deploy::Git
            branch: staging
            remote: staging
        prod:
            $class: Statocles::Deploy::Git
            branch: gh-pages
            remote: github

With this configuration, you could run statocles deploy preview to deploy to the preview server, or statocles deploy prod to deploy to production. A special deploy named "default" would be used when one simply does statocles deploy.

When only one deploy exists, that deploy should be the "default" deploy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant