-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
google_cloudbuild_trigger should support Invert Regex option in trigger_template #4195
Comments
I could help out contributing this! 😃 |
i think, after this |
You're welcome to file an issue against the GCP API if it's something you'd like to see! https://cloud.google.com/support/docs/issue-trackers |
please star this ticket to indicate that you are also effected by this missing api feature: https://issuetracker.google.com/issues/148122483 |
@danawillow how long until we can expect that to be in the provider? |
Closed by GoogleCloudPlatform/magic-modules#3628 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
Description
I am trying to setup my cloud build CI/CD in a way that one trigger will only run for the master branch and the second trigger will run on any branch except the master.
Usually I will be able to solve this with a regex with negative lookahead, e.g.
^(?!.*master).*$
The problem here is that google cloud build triggers do not support any lookahead in their regex.
Luckily google provides us with an Invert Regex option!
Anyways there seems to be nothing for the invert regex option as seen here:
https://www.terraform.io/docs/providers/google/r/cloud_build_trigger.html#trigger_template
This would be a nice feature to have, as a temporary workaround, I am ignoring anything that starts with master
^(?:[^m]|m[^a]|ma[^s]|mas[^t]|mast[^e]|maste[^r]|master.)
I would like to help out as a contributor if possible, will need help though.
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: