1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-15 16:56:24 +00:00
prometheus-operator/contrib/prometheus-config-reloader/Makefile
Max Leonard Inden bd5e20bc17
prometheus-config-reloader: Hardcode version
The prometheus-config-reloader will be released alongside the
prometheus-operator. Thereby it holds the same version.

For now we will manually hardcode that version. In the future this could
be achieved dynamically via a compiler flags.
2018-06-05 16:12:43 +02:00

22 lines
361 B
Makefile

all: build
FLAGS =
ENVVAR = GOOS=linux GOARCH=amd64 CGO_ENABLED=0
NAME = prometheus-config-reloader
REPO?=quay.io/coreos/$(NAME)
TAG?=v0.20.0
IMAGE = $(REPO):$(TAG)
build:
$(ENVVAR) go build -o $(NAME) main.go
container: build
docker build -t $(IMAGE) .
push: container
docker push $(IMAGE)
clean:
rm -f $(NAME)
.PHONY: all build container push clean