Skip to content

Writes the SOURCE_VERSION variable (usually the Git SHA) to a file for use by the app

Notifications You must be signed in to change notification settings

cristiano2lopes/heroku-buildpack-sourceversion

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

heroku-buildpacks-sourceversion

Writes the SOURCE_VERSION variable (usually the Git SHA) to a file for use by the app.

Originally created by @sreid – with very minor updates by @cristiano2lopes – out of the need to show which Git commit version of an app was running on a Heroku instance. Made possible by the addition of the SOURCE_VERSION variable during the build process. This variable is available during the build process, but not available to a running app, making this approach neccessary. Suggestions and improvements appreciated!

Usage

To use this buildpack, the app should already be successfully running the multi buildpack.

Then just add this buildpack in addition to the existing buildpacks in the .buildpacks file:

https://github.com/cristiano2lopes/heroku-buildpack-sourceversion.git

In the application code, read the .commit_hash file that will be created on deployment.

License

MIT

About

Writes the SOURCE_VERSION variable (usually the Git SHA) to a file for use by the app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%