Skip to content
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

Fix tag regex in tf file #73

Merged
merged 12 commits into from
Jan 16, 2019
6 changes: 5 additions & 1 deletion testing/tf/cloud-build/cloud-build.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
variable "base64tagRegex" {
zhilingc marked this conversation as resolved.
Show resolved Hide resolved
default = "XigwfFsxLTldXFxkKilcXC4oMHxbMS05XVxcZCopXFwuKDB8WzEtOV1cXGQqKSg/Oi0oKD86MHxbMS05XVxcZCp8XFxkKlthLXpBLVotXVswLTlhLXpBLVotXSopKD86XFwuKD86MHxbMS05XVxcZCp8XFxkKlthLXpBLVotXVswLTlhLXpBLVotXSopKSopKT8oPzpcXCsoWzAtOWEtekEtWi1dKyg/OlxcLlswLTlhLXpBLVotXSspKikpPyQ="
}

resource "google_cloudbuild_trigger" "build_trigger" {
project = "${var.gcp_project}"
trigger_template {
branch_name = "master"
tag_name = "^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$"
tag_name = "${base64decode(var.base64tagRegex)}"
project = "${var.gcp_project}"
repo_name = "http://github.com/gojek/feast"
}
Expand Down