Lets you fetch the git revision hash used to build the app from the GIT_REV
- dokku 0.4.0+
- docker 1.8.x
# on 0.3.x
cd /var/lib/dokku/plugins
git clone https://github.com/dokku-community/dokku-git-rev.git dokku-git-rev
dokku plugins-install
# on 0.4.x+
dokku plugin:install https://github.com/dokku-community/dokku-git-rev.git --name dokku-git-rev
This plugin provides hooks:
receive-app
: captures the currentGIT_REV
On git deploys, the GIT_REV
environment variable will be set for your application and be available for your usage.