Change the build.sh to append -dirty to the tag name if the git repo is not clean.

This commit is contained in:
Jake Moshenko 2015-03-13 10:36:35 -07:00
parent 81c4513ec1
commit 6d7a95b019

View file

@ -1,2 +1,4 @@
docker build -t quay.io/quay/quay:`git rev-parse --short HEAD` .
echo quay.io/quay/quay:`git rev-parse --short HEAD`
TAG=$(git rev-parse --short HEAD)$(test -n "$(git status --porcelain)" && echo -dirty)
REPO=quay.io/quay/quay:$TAG
docker build -t $REPO .
echo $REPO