add initial version of Grafana updater
This commit is contained in:
20
grafana-watcher/Makefile
Normal file
20
grafana-watcher/Makefile
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
Reference in New Issue
Block a user