Adds docker building

This commit is contained in:
Stephen McQuay 2018-03-09 10:12:51 -08:00
parent 0a1b6bbcb3
commit 636231a7f3
Signed by: sm
GPG Key ID: 4E4B72F479BA3CE5

View File

@ -38,3 +38,9 @@ clean:
lint:
@golint $(shell go list mcquay.me/hw/...)
@go vet $(shell go list mcquay.me/hw/...)
.PHONY: docker-build
docker-build: bin/hw bin/hwc bin/hwl
docker build -f cmd/hw/Dockerfile . -t smcquay/hw:$(VERSION)$(V_DIRTY)
docker build -f cmd/hwc/Dockerfile . -t smcquay/hwc:$(VERSION)$(V_DIRTY)
docker build -f cmd/hwl/Dockerfile . -t smcquay/hwl:$(VERSION)$(V_DIRTY)