-
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
Support for manually invoked builds to google_cloudbuild_trigger #8374
Support for manually invoked builds to google_cloudbuild_trigger #8374
Comments
We initially thought this was for triggering manual builds which is something we likely don't want to support. This is actually a request for creating a trigger that can be manually run. This is described in the linked docs page. I'm unable to figure out exactly how this would be done via the existing API though. This might be done by not setting any explicit triggers in the existing resource |
It's indeed undocumented (at least publically) => https://cloud.google.com/build/docs/api/reference/rest/v1/projects.triggers#BuildTrigger I've opened a support ticket to either release the API documentation linked to this, or make it explicit that it's not available from the APIs from Google.... |
I opened a bug on the Google issue tracker as per their feature request process: https://issuetracker.google.com/issues/192637573 |
While waiting for the solution, my workaround is to set Hope this helps |
You can actually create a webhook trigger without any secret, which results into a manual trigger on GCP: resource "google_cloudbuild_trigger" "my-trigger" {
name = "my-trigger"
webhook_config {
secret = ""
}
build {
...
}
} |
@lion7 this deploys successfully for me but the trigger in GCP appears not to have the 'webhook' option enabled, maybe because it is missing the |
No, the source I specified in the It is also broken when the trigger is a pub/sub topic. In that case the provided source is also not showing up. |
I would like to work on this issue. I have added support for it on my fork of magic-modules here. I will be submitting a PR soon |
Hello, I see that this issue was closed, but I don't see this feature list in the latest release notes: https://github.com/hashicorp/terraform-provider-google/releases/tag/v4.13.0 Will this be included in the next release? Thank you! |
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. |
Community Note
Description
You are able to create manual triggers in GCP console.
https://cloud.google.com/cloud-build/docs/automating-builds/create-manual-triggers
Same would be nice to have supported with google_cloudbuild_trigger
New or Affected Resource(s)
google_cloudbuild_trigger
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: