mirror of
https://github.com/prometheus-operator/prometheus-operator.git
synced 2025-04-15 16:56:24 +00:00
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.
22 lines
361 B
Makefile
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
|