Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Anadea/dokku-git-rev

 
 

Repository files navigation

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

dokku plugin:install https://github.com/Anadea/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