Skip to content

Commit

Permalink
Merge pull request #387 from mterzo/docker_pre_build
Browse files Browse the repository at this point in the history
Adding Docker puppet version tagging
  • Loading branch information
mterzo committed Jun 10, 2017
2 parents 2f347fd + db2f8f8 commit 38f7958
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hooks/pre_build
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

version=$(git describe HEAD --abbrev=4)

cat << EOF > puppetboard/version.py
#
# Puppetboard version module
#
__version__ = '${version}'
EOF

0 comments on commit 38f7958

Please sign in to comment.