https://pulumi.com logo
#pulumi-deployments
Title
# pulumi-deployments
l

little-cartoon-10569

02/05/2024, 2:20 AM
Can anyone point me at the code for the DeploymentSettingsGitHub feature? I'd like to do the same thing for Bitbucket: on PR, create and run a
pulumi preview
deployment for a temporary merge branch, optionally with a templated environment. The
pulumi up on commit
feature is straight forward.
r

red-match-15116

02/05/2024, 7:46 PM
Hey @little-cartoon-10569 this is closed source code from pulumi-service, so I can't easily link it to you. We use the github app to receive webhook events from github, and we run the preview on the target branch when there's a pull request open or update event. To do this with bitbucket you would either need a bitbucket app that similarly receives webhook events and creates a preview deployment, or, you could poll bitbucket at regular intervals to see if any new PRs have been created and then run a preview on the target branches.
l

lemon-agent-27707

02/06/2024, 12:51 AM
We do have an issue for adding bitbucket support natively: https://github.com/pulumi/pulumi-cloud-requests/issues/162 Please give it a 👍 Deployments will eventually support more VCS providers including gitlab, bitbucket, etc.