Merge pull request #419 from mterzo/docker_hooks

Docker build needs to use light weight tags
This commit is contained in:
Mike Terzo
2017-10-16 07:47:58 -04:00
committed by GitHub

View File

@@ -1,6 +1,16 @@
#!/bin/bash #!/bin/bash
version=$(git describe HEAD --abbrev=4)
git_version=$(git describe HEAD --tags --abbrev=4)
if [ ${SOURCE_BRANCH} == "master" ]
then
version=$git_version
else
version=$(echo ${SOURCE_BRANCH} | sed 's/v//')
fi
cat << EOF > puppetboard/version.py cat << EOF > puppetboard/version.py
# #