
Connect a Pulumi application in GitHub to Relay for CI/CD
WORKFLOW
This workflow receives webhook events from GitHub and runs Pulumi to preview or create resources in your application.
Integrations used
Source
View on GitHubCode
Relay uses YAML to define the steps in a workflow.
Graph
Each step in the workflow is visualized below.

This workflow runs the pulumi
command against a connected
GitHub repository via Relay. It's useful for implementing
CI/CD workflows which connect to services outside of GitHub.
In this example, the outcome of the Pulumi execution is passed into Slack as a notification.
To use this workflow:
- add it to your relay account
- configure a Slack connection called 'my-workspace' (or change this code to match your real connection's name)
- add workflow secrets for your pulumi and github accounts
- copy the webhook url from the relay UI
- in your pulumi app repo on github, go to settings->webhooks
- paste the webhook url and set it to execute on PRs