mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-07 02:07:58 +00:00
all-in on go modules
This commit is contained in:
parent
28a807aa9f
commit
91d5c6778e
2975 changed files with 2 additions and 1060560 deletions
4
Makefile
4
Makefile
|
|
@ -39,8 +39,8 @@ docker-build:
|
|||
cp deploy/Dockerfile $(TEMP_DIR)
|
||||
cd $(TEMP_DIR) && sed -i "s|BASEIMAGE|$(BASEIMAGE)|g" Dockerfile
|
||||
|
||||
docker run -it -v $(TEMP_DIR):/build -v $(shell pwd):/go/src/github.com/directxman12/k8s-prometheus-adapter -e GOARCH=$(ARCH) $(GOIMAGE) /bin/bash -c "\
|
||||
CGO_ENABLED=0 go build -tags netgo -o /build/adapter github.com/directxman12/k8s-prometheus-adapter/cmd/adapter"
|
||||
docker run -it -v $(TEMP_DIR):/build -v $(shell pwd):/src -e GOARCH=$(ARCH) -w /src \
|
||||
-e CGO_ENABLED=0 $(GOIMAGE) go build -tags netgo -o /build/adapter ./cmd/adapter
|
||||
|
||||
docker build -t $(REGISTRY)/$(IMAGE)-$(ARCH):$(VERSION) $(TEMP_DIR)
|
||||
rm -rf $(TEMP_DIR)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue