-
Notifications
You must be signed in to change notification settings - Fork 45
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 production_environment
#208
Comments
@mnaser have you read the little bitsof docs that float around about this variable here? This variable effectively is just used to tell the GitHub API when a deployment starts if it is the "production" env or not. You can read more about this variable in the official GitHub docs as well (see screenshot) The majority of the use cases I have seen for this value is when users have a unique env name and they need to overwrite it. For example, if you call That being said, I have actually not come across this use case that is yours yet. Please do some tinkering, swap around this variable, set it to something obscure, etc. Let me know the results here and how it works for you! If it doesn't work out well, I'll look into creating a solution. Thanks! 🙇 |
@GrantBirki thanks!! i'm playing around with it, I actually do not have a single "production" environment in this case, so I left it set to So far, so good, I haven't seen anything wild, the only thing is that if someone does |
@mnaser Would you be able to copy / paste or link to your branch-deploy configuration? I'm curious about what settings you have. |
I can't link it because it's a private repository that we use to deploy, but...
So in my case, I can only deploy to |
I think the solution here is to have This would fix the problem at hand for you and likely all other users in the future. The only issue is that this would be a pretty significant breaking change as the input variable would change values by adding that trailing "s". However, I think we can show deprecation messages in the logs and push a |
@GrantBirki worked beautifully, thank you. |
Describe the Issue
I've got a scenario where I have multiple production environments all managed in the same environment.
There doesn't seem to be a way to have multiple production environments managed within the same repository? While there are ways to have multiple environments, it feels that the
production_environment
is meant for the main one?Does it make sense to just set
production_environment
to something obscure if you have multiple production environments?Action Configuration
No response
Relevant Actions Log Output
No response
Extra Information
No response
The text was updated successfully, but these errors were encountered: