Created
July 5, 2024 09:30
-
-
Save mdmsua/253c2e5a17d5650fad354b478e7e56c1 to your computer and use it in GitHub Desktop.
Tag-driven Terraform module release flow
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
package spacelift | |
sample := true | |
module_version := version { | |
version := trim_prefix(input.push.tag, "v") | |
not propose | |
} | |
propose { | |
not is_null(input.pull_request) | |
} | |
track { | |
module_version != "" | |
input.push.branch == "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment