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

Improve multistage support #3

Open
nickpeirson opened this issue Jul 20, 2012 · 1 comment
Open

Improve multistage support #3

nickpeirson opened this issue Jul 20, 2012 · 1 comment

Comments

@nickpeirson
Copy link

We're using capify-cloud and it's working well. We're also using multistage and we've found a way to get it working with capify-cloud:

Our stage files look like:

@capify_cloud = CapifyCloud.new(fetch(:cloud_config, 'config/cloud.production.yml'))
cloud_roles :api

This allows us to load different configs for each stage where we're then overloading the project tag with an appended stage identifier:

:cloud_providers: ['AWS']
:project_tag: "projectname-staging"

:AWS:
  :aws_access_key_id: "ACCESS_KEY"
  :aws_secret_access_key: "SECRET_KEY"
  :regions: ["us-west-1", "us-east-1"]

This works, but it would be a lot slicker if we could tag stages rather than overload the project name.

To take this one step further, it would be good to be able to not have to duplicate config, as it's only the stage that changes. Specifying this directly in the stage file rather than creating new config files would be ideal.

@jmonteiro
Copy link

👍 I've being using this approach for several months now.

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

No branches or pull requests

2 participants