13 lines
333 B
Makefile
13 lines
333 B
Makefile
.PHONY: build fmt deploy
|
|
|
|
default: build
|
|
|
|
build:
|
|
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
|
|
|
|
deploy: build
|
|
docker build --tag registry.lab.inf3.xyz/tschwery/temperature-go-server:v1.1 .
|
|
docker push registry.lab.inf3.xyz/tschwery/temperature-go-server:v1.1
|
|
|
|
fmt:
|
|
go fmt $$(go list ./... | grep -v /vendor/)
|