From 8ff015f5489f0ef41bef4fb33592596541705819 Mon Sep 17 00:00:00 2001 From: Sharif Elgamal Date: Thu, 16 Jun 2022 15:58:23 -0700 Subject: [PATCH 1/4] Update Makefile for v0.0.9 --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bf0ccb5..d54a44f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ REGISTRY?=gcr.io/k8s-minikube -VERSION=v0.0.8 +VERSION=v0.0.9 GOOS?=$(shell go env GOOS) +GOARCH?=$(shell go env GOARCH) +KO_VERSION=0.11.2 build: ## Build the gcp-auth-webhook binary CGO_ENABLED=0 GOOS=linux go build -o out/gcp-auth-webhook server.go @@ -8,7 +10,7 @@ build: ## Build the gcp-auth-webhook binary .PHONY: image image: ## Create and push multiarch manifest and images @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; - 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 + 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 KO_DOCKER_REPO=$(REGISTRY) ./ko publish -B . --platform all -t $(VERSION) rm ./ko From 3e43e9a7455b7fc994fbcfd136027b6fd74d02b3 Mon Sep 17 00:00:00 2001 From: Sharif Elgamal Date: Fri, 17 Jun 2022 10:00:00 -0700 Subject: [PATCH 2/4] add RELEASING.md --- RELEASING.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 RELEASING.md diff --git a/RELEASING.md b/RELEASING.md new file mode 100644 index 0000000..ec8117f --- /dev/null +++ b/RELEASING.md @@ -0,0 +1,3 @@ +# Releasing a new gcp-auth-webhook image +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). +Once merged, create a tag with the same name as the new version, then create a releasein 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. From b960cc60623398ee0a924a12785fac460e4c3ed2 Mon Sep 17 00:00:00 2001 From: Sharif Elgamal Date: Fri, 17 Jun 2022 11:07:01 -0700 Subject: [PATCH 3/4] Update RELEASING.md --- RELEASING.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASING.md b/RELEASING.md index ec8117f..803b321 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -1,3 +1,4 @@ # Releasing a new gcp-auth-webhook image -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). +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). + Once merged, create a tag with the same name as the new version, then create a releasein 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. From 8f592a4d769156eb033aac33352b391b9fe184f3 Mon Sep 17 00:00:00 2001 From: Sharif Elgamal Date: Tue, 21 Jun 2022 08:48:51 -0700 Subject: [PATCH 4/4] Update RELEASING.md --- RELEASING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASING.md b/RELEASING.md index 803b321..28480cb 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -1,4 +1,4 @@ # Releasing a new gcp-auth-webhook image 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). -Once merged, create a tag with the same name as the new version, then create a releasein 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. +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.