Add image target to Makefile

This commit is contained in:
James Mills 2020-03-30 18:23:18 +10:00
parent 107110183a
commit 7c919b5f9b
No known key found for this signature in database
GPG key ID: AC4C014F1440EBD6

View file

@ -1,4 +1,4 @@
.PHONY: dev setup build install test release clean .PHONY: dev setup build install image test release clean
CGO_ENABLED=0 CGO_ENABLED=0
VERSION=$(shell git describe --abbrev=0 --tags) VERSION=$(shell git describe --abbrev=0 --tags)
@ -23,6 +23,9 @@ build: clean
install: build install: build
@go install @go install
image:
@docker build -t prologic/tube .
test: install test: install
@go test @go test