-
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 not accepting repository-related information when using webhook_config and filename #10085
Comments
@giefferre have you checked out trigger_template to see if that helps? |
Hi @edwardmedia and thanks for the prompt reply. Of course I had checked, but as the reference you linked says:
So it is NOT compatible as the |
@giefferre can you try something like below? resource "google_cloudbuild_trigger" "webhook-trigger" {
webhook_config {
secret = "projects/573164781234/secrets/webhook-secret/versions/1"
}
name = "tfbuild"
build {
step {
name = "gcr.io/cloud-builders/gsutil"
args = ["cp", "gs://mybucket/remotefile.zip", "localfile.zip"]
timeout = "120s"
}
source {
repo_source {
repo_name = "https://github.com/edwardmedia/cbloud"
branch_name = "master"
}
}
}
} |
@edwardmedia this would not be the same. I specifically need the If I also add the
(source) |
@giefferre I see. Currently this is not supported in the provider.
|
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
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
I expected to have a way to specify the source repository configuration for the webhook to use for the build.
Actual Behavior
The webhook has been created but it does not point to a repository configuration (name AND branch or tag).
This is in fact possible using the online console, please see attached screenshot
Steps to Reproduce
terraform apply
References
The text was updated successfully, but these errors were encountered: