Join Slack
Powered by
Does Pulumi Deploy create any environment variable...
# general
l
little-summer-88406
04/11/2024, 6:41 AM
Does Pulumi Deploy create any environment variables that tell me the source of the trigger e.g. PULUMI_DEPLOY_INVOKE_SOURCE=console/github/rest and the commit SHA if the source is github/git?
t
thousands-window-76079
04/11/2024, 10:28 AM
i'm not sure, but most CI's put this env variable in for you,
https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
r
red-match-15116
04/11/2024, 4:37 PM
There's an open issue about the SHA but there is a workaround that lets you access it in a prerun command
red-match-15116
04/11/2024, 4:37 PM
https://github.com/pulumi/pulumi-cloud-requests/issues/132
red-match-15116
04/11/2024, 4:38 PM
Running the following in a prerun command will get you the SHA
Copy code
git rev-parse HEAD
red-match-15116
04/11/2024, 4:39 PM
The trigger is not included in the environment... but we could definitely add that. Opened an issue:
https://github.com/pulumi/pulumi-cloud-requests/issues/379
Open in Slack
Previous
Next