Files
kube-prometheus/grafana-watcher/Makefile
2016-10-19 18:02:41 +02:00

21 lines
357 B
Makefile

all: build
FLAGS =
ENVVAR = GOOS=linux GOARCH=amd64 CGO_ENABLED=0
REGISTRY = quay.io/coreos
TAG = latest
build:
$(ENVVAR) go build -o grafana-watcher main.go
image: build
docker build -t ${REGISTRY}/grafana-watcher:$(TAG) .
push: image
docker push ${REGISTRY}/grafana-watcher:$(TAG)
clean:
rm -f grafana-watcher
.PHONY: all build image push clean