Change the build.sh to append -dirty to the tag name if the git repo is not clean.
This commit is contained in:
parent
81c4513ec1
commit
6d7a95b019
1 changed files with 4 additions and 2 deletions
6
build.sh
6
build.sh
|
@ -1,2 +1,4 @@
|
||||||
docker build -t quay.io/quay/quay:`git rev-parse --short HEAD` .
|
TAG=$(git rev-parse --short HEAD)$(test -n "$(git status --porcelain)" && echo -dirty)
|
||||||
echo quay.io/quay/quay:`git rev-parse --short HEAD`
|
REPO=quay.io/quay/quay:$TAG
|
||||||
|
docker build -t $REPO .
|
||||||
|
echo $REPO
|
||||||
|
|
Reference in a new issue