incalculable-plumber-44531
01/13/2025, 12:33 PMpulumi up
on merge to main as described here: https://www.pulumi.com/docs/iac/using-pulumi/continuous-delivery/github-actions/#the-push-workflow-file or something else? I like the idea and have tested it several times but in case of errors during the up operation I end up creating a dummy PR to trigger a pulumi preview
and then merge to run pulumi up
again, in order to fix the previous operation. What is your workflow overall to apply infra as code on your cloud provider of choice?little-cartoon-10569
01/13/2025, 6:50 PMpulumi up
.kind-motherboard-59197
01/14/2025, 9:06 AMincalculable-plumber-44531
01/14/2025, 12:12 PMFor some stacks this is a manually-triggered workflowI've gone that route too and added a
workflow_dispatch:
option to invoke pulumi up
@kind-motherboard-59197 thanks.
by making sure a successful deployment to dev has been made before a PR is mergedDoes that mean you trigger an action whenever a branch is created that aims to deploy to dev, then if that action succeeds, you unlock merging to main which in then deploys the same change to prod?
kind-motherboard-59197
01/14/2025, 1:08 PMincalculable-plumber-44531
01/14/2025, 2:04 PMincalculable-plumber-44531
01/16/2025, 11:04 AMpulumi preview
?
I personally don't want to run it upon each commit so I trigger it by adding a label to a given PR. However that requires to manually remove and re-add the label when we think we're ready to preview changes.kind-motherboard-59197
01/16/2025, 11:48 AMpulumi preview
job for our dev environment would require reviewers to approve the deployment in the exact same way as if it was pulumi up
kind-motherboard-59197
01/16/2025, 11:49 AMneeds: build
here, but you get the ideakind-motherboard-59197
01/16/2025, 11:50 AMkind-motherboard-59197
01/16/2025, 11:50 AMkind-motherboard-59197
01/16/2025, 11:54 AMworkflow_dispatch
trigger with an input for a preview/dryRun etc. This is an example from one of our workflows that publish npm packagesincalculable-plumber-44531
01/16/2025, 12:35 PMworkflow_dispatch
for preview (as it would indeed be convenient to trigger it on demand, rather than using a label).