https://pulumi.com logo
Title
m

mammoth-memory-9424

11/24/2022, 3:49 PM
Hello all! I'm very new to pulumi, and can't find how to configure a basic trigger for google cloud builds. I have this code:
trigger = Trigger(
    resource_name="pulumi-trigger",
    filename="Dockerfile",
    trigger_template=TriggerTriggerTemplateArgs(
        repo_name="my_repo",
        tag_name="tag-*",
    ),
)
Unfortunately, I can not find how to configure this trigger using a dockerfile (a google cloud config file is expected instead). I would like to do something that behaves exactly as :
gcloud beta builds triggers create cloud-source-repositories --repo my_repo --tag-pattern tag-* --dockerfile Dockerfile --name pulumi-trigger
Any idea how to do so ? the API reference has just got me lost so far
r

rhythmic-branch-12845

11/24/2022, 4:49 PM
not a direct answer, but re “the API reference has just got me lost so far”, I’ve found it helpful, if you’re familiar with Terraform, to always reference the Terraform docs first. The python docs dont get as much love as they deserve.
m

mammoth-memory-9424

11/25/2022, 8:58 AM
thanks for the answer. I will have a look !