generated from actions/typescript-action
-
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
Enforced Deployment Order #304
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…or the given env and sha
…tive deployments for usage with enforced deployment order
northrup
previously approved these changes
Sep 20, 2024
nobe4
reviewed
Sep 20, 2024
Co-authored-by: nobe4 <nobe4@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enforced Deployment Order 🚀
Introducing a long requested feature, enforced deployment order...
Summary
This pull request does the following:
enforced_deployment_order
input option that can be used to require deployments to take place "in order" and for each to pass before the next one can be triggeredneeds_to_be_deployed
output that maps to the environments that require successful deployments if a deployment attempt is rejectedDetailed
This feature is one that has been requested by folks internally and externally to GitHub for a long time (over a year). This pull request makes it so that users can now control the order in which deployments are made (if they choose to do so).
This feature is optional and can be enabled by setting,
enforced_deployment_order: <env1>,<env2>,<env3>
. The value forenforced_deployment_order
is a string that is read from left->right with each value separated by commas. Each value in this comma separated list is an environment that you wish to use in an "enforced deployment order". Here is an example:This means that your project has three environments in total (
development,staging,production
). Theenforced_deployment_order
input option specifies that your environments must now be deployed in the order in which they are written. So if you want to deploy toproduction
, you must first have a successful (and active) deployment todevelopment
andstaging
before the branch-deploy Action will allow you to trigger a deployment toproduction
.Examples 📸
related: #303