Channels
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
general
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#general
Title
b
bitter-island-28909
01/28/2019, 3:28 PM
Is there an easy way to get at the current git SHA of the repository containing my Pulumi code (such as is displayed in the web UI) from within my JS code? I’d like to use it to tag docker containers as well.
w
white-balloon-205
01/28/2019, 3:59 PM
You can shell out to
git
or use a JS git library from within your program.
Post