Skip to content

Exports the Heroku SOURCE_VERSION variable (usually the Git SHA) to an env variable that application code can access.

Notifications You must be signed in to change notification settings

mindfulchefuk/heroku-buildpack-git-sha

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

heroku-buildpacks-git-sha

Exports the Heroku SOURCE_VERSION variable (usually the Git SHA) to an environment variable as GIT_SHA that application code can access at runtime.

Usage

This buildpack must be used in concert with one or more others. Heroku supports multiple buildpacks out of the box.

The order of buildpacks does matter. You probably want this one first in the order. For example:

heroku buildpacks:add --index 1 https://github.com/ThriveFinancial/heroku-buildpack-git-sha.git

The Git SHA will now be available to application code via GIT_SHA. Examples:

Node    process.env['GIT_SHA']
Java    System.getenv("GIT_SHA")
Scala   sys.env("GIT_SHA")

License

MIT

About

Exports the Heroku SOURCE_VERSION variable (usually the Git SHA) to an env variable that application code can access.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%