Skip to content

Heroku buildpack that compiles a profile.d script for the SOURCE_VERSION environment variable.

Notifications You must be signed in to change notification settings

Lostmyname/heroku-buildpack-version

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

Source Version Buildpack

We use commit sha's to version our assets. This buildpacks exposes the SOURCE_VERSION build time environment variable to the runtime as well.

Background

Heroku provides the SOURCE_VERSION environment variable as a nice SCM-agnostic way to do this. We can use a buildpack to create a profile.d script that will export SOURCE_VERSION into the app runtime environment.

Usage

Add the buildpack to your app:

heroku buildpacks:add https://github.com/Lostmyname/heroku-buildpack-version

Links

About

Heroku buildpack that compiles a profile.d script for the SOURCE_VERSION environment variable.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%