Skip to content

Instantly share code, notes, and snippets.

@mdmsua
Created July 5, 2024 09:30
Show Gist options
  • Save mdmsua/253c2e5a17d5650fad354b478e7e56c1 to your computer and use it in GitHub Desktop.
Save mdmsua/253c2e5a17d5650fad354b478e7e56c1 to your computer and use it in GitHub Desktop.
Tag-driven Terraform module release flow
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