-
Notifications
You must be signed in to change notification settings - Fork 47
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
Parallell noop deployments from a single comment - .noop dev,uat,prd #310
Comments
👋 Thank you for opening this issue! If I'm understanding correctly, it looks like instead of doing:
You want to just be able to do:
When looking at this request, right away I can see how this would be useful or a QOL improvement when using this Action. However, in terms of "desirable" I think there are some things to consider. First, we should keep in mind that this Action aims to enable folks to deploy their projects without interfering with "how" people deploy (other than upholding the concept of branch deployments). That being said, here are the few concerns that first come to mind with this:
Now, most of these points only exist if one was using a matrix workflow strategy and had all these deployments running in parallel. Rather than run in parallel, one might be able to run them in a logical order like Again, the way this Action is design is to help folks safely deploy changes and I do believe that this feature request can bring value to teams that have multiple environments that can support parallel deployments in a safe manner. Enter... PipelinesAnother concept that we have here at GitHub is deployment pipelines. This is a deployment concept where you might deploy a project in stages (or steps) that might consist of one (or more) environments. This is something that you could stitch together with this Action today. You could rename your As a bonus you could have Pipelines Pseudocode ExampleUser types
I'll leave this issue open and it is something that certainly might be implemented in the future. I'm unsure if I'll have the bandwidth to work on this myself but pull requests are always welcome! 🙇 Thank you for taking the time to open this issue as well ❤ |
Details
We're currently using branch-deploy for terraform deployments with multiple environment jobs.
We then use the outputs of this job to determine what environments to plan or apply against in subsequent jobs, pretty much like what is laid out in the examples.
We have several non-production environments for each project and sometimes more than one production environment. The environments can vary per project but typically we're talking dev,uat,prd.
We aren't yet using the new enforce deployment order feature, but even if we adopt it, in terraform's case that only makes sense for us on .tf_apply (.deploy) rather than .tf_apply (.noop). We have no real reason to wait to plan against UAT for example because we haven't applied DEV.
In our current process when we open a PR to add a new feature/infra to a project in order to plan we have to create multiple comments to get plans running:
It would be easier for us if we could comment like so:
Then rather than use the "environment: string" output, we'd use the "environments: list" output to run against multiple environments.
We currently do something like this with issues and the actions/command-action
Is there any chance this would be desirable as a feature?
The text was updated successfully, but these errors were encountered: