You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,16 @@
1
1
REGISTRY?=gcr.io/k8s-minikube
2
-
VERSION=v0.0.8
2
+
VERSION=v0.0.9
3
3
GOOS?=$(shell go env GOOS)
4
+
GOARCH?=$(shell go env GOARCH)
5
+
KO_VERSION=0.11.2
4
6
5
7
build: ## Build the gcp-auth-webhook binary
6
8
CGO_ENABLED=0 GOOS=linux go build -o out/gcp-auth-webhook server.go
7
9
8
10
.PHONY: image
9
11
image: ## Create and push multiarch manifest and images
10
12
@read -p "This will build and push $(REGISTRY)/gcp-auth-webhook:$(VERSION). Do you want to proceed? (Y/N): " confirm &&echo$$confirm | grep -iq "^[yY]"||exit 1;
11
-
curl -L https://github.com/google/ko/releases/download/v0.10.0/ko_0.10.0_$(GOOS)_x86_64.tar.gz | tar xzf - ko && chmod +x ./ko
13
+
curl -L https://github.com/google/ko/releases/download/v$(KO_VERSION)/ko_$(KO_VERSION)_$(GOOS)_$(GOARCH).tar.gz | tar xzf - ko && chmod +x ./ko
12
14
KO_DOCKER_REPO=$(REGISTRY) ./ko publish -B . --platform all -t $(VERSION)
0 commit comments