$GIT_REV in your dokku env
Makefile Shell
Pull request Compare This branch is 7 commits ahead of mlebkowski:master.
Latest commit ca073d7 Oct 12, 2015 @cjblomqvist Merge pull request #1 from josegonzalez/master
Upgrade plugin for 0.4.x
Permalink
Failed to load latest commit information.
.editorconfig Upgrade plugin for 0.4.x Sep 23, 2015
.travis.yml Upgrade plugin for 0.4.x Sep 23, 2015
LICENSE.txt
Makefile
README.md
plugin.toml Upgrade plugin for 0.4.x Sep 23, 2015
post-release Upgrade plugin for 0.4.x Sep 23, 2015
post-release-buildpack Upgrade plugin for 0.4.x Sep 23, 2015
post-release-dockerfile
receive-app Upgrade plugin for 0.4.x Sep 23, 2015

README.md

dokku-git-rev Build Status

Lets you fetch the git revision hash used to build the app from the GIT_REV

requirements

  • dokku 0.4.0+
  • docker 1.8.x

installation

# on 0.3.x
cd /var/lib/dokku/plugins
git clone https://github.com/cjblomqvist/dokku-git-rev.git dokku-git-rev
dokku plugins-install

# on 0.4.x
dokku plugin:install https://github.com/cjblomqvist/dokku-git-rev.git dokku-git-rev

hooks

This plugin provides hooks:

  • post-release-buildpack: adds the GIT_REV env var
  • post-release-dockerfile: adds the GIT_REV env var
  • receive-app: captures the current GIT_REV

usage

On git deploys, the GIT_REV environment variable will be set in /app/.profile.d/git_rev.sh and be available for your usage.

thanks