mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-05 17:27:51 +00:00
Merge pull request #17 from luxas/add_dockerized_vendor
add option to fetch vendor dockerized
This commit is contained in:
commit
5f963b6a02
1 changed files with 7 additions and 0 deletions
7
Makefile
7
Makefile
|
|
@ -5,6 +5,7 @@ ARCH?=amd64
|
|||
ALL_ARCH=amd64 arm arm64 ppc64le s390x
|
||||
ML_PLATFORMS=linux/amd64,linux/arm,linux/arm64,linux/ppc64le,linux/s390x
|
||||
OUT_DIR?=./_output
|
||||
VENDOR_DOCKERIZED=0
|
||||
|
||||
VERSION?=latest
|
||||
|
||||
|
|
@ -52,7 +53,13 @@ push: ./manifest-tool $(addprefix push-,$(ALL_ARCH))
|
|||
chmod +x manifest-tool
|
||||
|
||||
vendor: glide.lock
|
||||
ifeq ($(VENDOR_DOCKERIZED),1)
|
||||
docker run -it -v $(shell pwd):/go/src/github.com/directxman12/k8s-prometheus-adapter -w /go/src/github.com/directxman12/k8s-prometheus-adapter golang:1.8 /bin/bash -c "\
|
||||
curl https://glide.sh/get | sh \
|
||||
&& glide install -v"
|
||||
else
|
||||
glide install -v
|
||||
endif
|
||||
|
||||
test: vendor
|
||||
CGO_ENABLED=0 go test ./pkg/...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue