Adding Docker puppet version tagging
This commit is contained in:
11
hooks/pre_build
Executable file
11
hooks/pre_build
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
version=$(git describe HEAD --abbrev=4)
|
||||||
|
|
||||||
|
cat << EOF > puppetboard/version.py
|
||||||
|
#
|
||||||
|
# Puppetboard version module
|
||||||
|
#
|
||||||
|
__version__ = '${version}'
|
||||||
|
EOF
|
||||||
|
|
||||||
Reference in New Issue
Block a user