Skip to content

Commit f60e0ce

Browse files
Merge pull request #26 from sharifelgamal/v0.0.9
Update Makefile for v0.0.9
2 parents 3f63118 + 8f592a4 commit f60e0ce

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
REGISTRY?=gcr.io/k8s-minikube
2-
VERSION=v0.0.8
2+
VERSION=v0.0.9
33
GOOS?=$(shell go env GOOS)
4+
GOARCH?=$(shell go env GOARCH)
5+
KO_VERSION=0.11.2
46

57
build: ## Build the gcp-auth-webhook binary
68
CGO_ENABLED=0 GOOS=linux go build -o out/gcp-auth-webhook server.go
79

810
.PHONY: image
911
image: ## Create and push multiarch manifest and images
1012
@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
1214
KO_DOCKER_REPO=$(REGISTRY) ./ko publish -B . --platform all -t $(VERSION)
1315
rm ./ko
1416

RELEASING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Releasing a new gcp-auth-webhook image
2+
Bump the `VERSION` variable in the Makefile and open a PR to update it. Make sure `KO_VERSION` is the latest version according to its [github repo](https://github.com/google/ko/releases).
3+
4+
Once merged, create a tag with the same name as the new version, then create a release in the github UI. Once the release is created, run `make image`. This will use `ko` to create the new multiarch image and push it to `$REGISTRY/gcp-auth-webhook` according to the REGISTRY variable in the Makefile.

0 commit comments

Comments
 (0)