add -dirty to image name if repo is dirty

This commit is contained in:
Stephen McQuay 2018-05-10 16:09:44 -07:00
parent de8aa51035
commit 6da2bfbfe0
Signed by: sm
GPG Key ID: C383C74875475AC8

View File

@ -41,12 +41,12 @@ lint:
.PHONY: docker-build .PHONY: docker-build
docker-build: bin/hw bin/hwc bin/hwl docker-build: bin/hw bin/hwc bin/hwl
docker build -f cmd/hw/Dockerfile . -t smcquay/hw:$(VERSION)$(V_DIRTY) docker build -f cmd/hw/Dockerfile . -t smcquay/hw:$(VERSION)$(V_DIRTY)$(DIRTY)
docker build -f cmd/hwc/Dockerfile . -t smcquay/hwc:$(VERSION)$(V_DIRTY) docker build -f cmd/hwc/Dockerfile . -t smcquay/hwc:$(VERSION)$(V_DIRTY)$(DIRTY)
docker build -f cmd/hwl/Dockerfile . -t smcquay/hwl:$(VERSION)$(V_DIRTY) docker build -f cmd/hwl/Dockerfile . -t smcquay/hwl:$(VERSION)$(V_DIRTY)$(DIRTY)
.PHONY: docker-push .PHONY: docker-push
docker-push: docker-push:
docker push smcquay/hw:$(VERSION)$(V_DIRTY) docker push smcquay/hw:$(VERSION)$(V_DIRTY)$(DIRTY)
docker push smcquay/hwc:$(VERSION)$(V_DIRTY) docker push smcquay/hwc:$(VERSION)$(V_DIRTY)$(DIRTY)
docker push smcquay/hwl:$(VERSION)$(V_DIRTY) docker push smcquay/hwl:$(VERSION)$(V_DIRTY)$(DIRTY)