-
Notifications
You must be signed in to change notification settings - Fork 0
Allow trigger branching strategy customisation #98
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,54 +71,23 @@ variable "environment" { | |
| } | ||
| } | ||
|
|
||
|
|
||
| variable "branching_strategy" { | ||
| description = "Branching strategy for different environments" | ||
|
jbadavis marked this conversation as resolved.
|
||
| type = map(any) | ||
| default = { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. By removing this default values, won't this be affecting triggers created with this module ?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The default is now specified in If no variable is passed it defaults to
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, all good. It looks like the default values before where slightly different to the ones in the variables. All good now |
||
| dev = { | ||
| validate = { | ||
| branch = "^NOT_USED_PREVIEW$" | ||
| invert_regex = false | ||
| } | ||
| provision = { | ||
| branch = ".*" | ||
| invert_regex = false | ||
| } | ||
| }, | ||
| preview = { | ||
| validate = { | ||
| branch = "^NOT_USED_PREVIEW$" | ||
| invert_regex = false | ||
| } | ||
| provision = { | ||
| branch = ".*" | ||
| invert_regex = false | ||
| } | ||
| }, | ||
| preprod = { | ||
| validate = { | ||
| branch = "^main$|^preprod$|^release/(.*)$" | ||
| invert_regex = true | ||
| } | ||
| provision = { | ||
| branch = "^main$|^preprod$|^release/(.*)$" | ||
| invert_regex = false | ||
| } | ||
| }, | ||
| prod = { | ||
| validate = { | ||
| branch = "^main$" | ||
| invert_regex = true | ||
| } | ||
| provision = { | ||
| branch = "^main$" | ||
| invert_regex = false | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| type = map(object({ | ||
| validate = object({ | ||
| branch = string | ||
| invert_regex = bool | ||
| }) | ||
| provision = object({ | ||
| branch = string | ||
| invert_regex = bool | ||
| }) | ||
| })) | ||
|
|
||
| default = null | ||
| nullable = true | ||
| } | ||
|
jbadavis marked this conversation as resolved.
|
||
|
|
||
| # Tags | ||
| variable "tags" { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.