1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-16 09:16:38 +00:00
prometheus-operator/Makefile

21 lines
558 B
Makefile
Raw Normal View History

2016-11-01 17:36:06 +01:00
all: build
REPO?=quay.io/coreos/prometheus-operator
TAG?=$(shell git rev-parse --short HEAD)
2016-11-01 17:36:06 +01:00
build:
./scripts/check_license.sh
2016-11-01 14:19:25 +01:00
go build github.com/coreos/prometheus-operator/cmd/operator
container:
GOOS=linux $(MAKE) build
2016-11-01 17:36:06 +01:00
docker build -t $(REPO):$(TAG) .
e2e: container
go test -v ./test/e2e/ --kubeconfig "$(HOME)/.kube/config" --operator-image=quay.io/coreos/prometheus-operator:$(TAG) --namespace=prometheus-operator-e2e-tests-$(TAG)
clean-e2e:
kubectl delete namespace prometheus-operator-e2e-tests
.PHONY: all build container e2e clean-e2e