From 6d7a95b019b9dc3fad3ebb7a2716758e3e3b5619 Mon Sep 17 00:00:00 2001 From: Jake Moshenko Date: Fri, 13 Mar 2015 10:36:35 -0700 Subject: [PATCH] Change the build.sh to append -dirty to the tag name if the git repo is not clean. --- build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 12ec0faa7..c53d60562 100755 --- a/build.sh +++ b/build.sh @@ -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` \ No newline at end of file +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