From 56152c70cdf431374b4b130db63f4ea8f3c827b8 Mon Sep 17 00:00:00 2001 From: Sharif Elgamal Date: Tue, 28 Jul 2020 15:46:59 -0700 Subject: [PATCH] add versioning and tag v0.0.1 --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0a5050d..cc6354b 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,15 @@ REGISTRY?=gcr.io/k8s-minikube +VERSION=v0.0.1 build: CGO_ENABLED=0 GOOS=linux go build -o out/gcp-auth-webhook -ldflags=$(PROVISIONER_LDFLAGS) server.go .PHONY: image image: build - docker build -t $(REGISTRY)/gcp-auth-webhook -f Dockerfile ./out + docker build -t $(REGISTRY)/gcp-auth-webhook:$(VERSION) -f Dockerfile ./out .PHONY: push push: image - docker push $(REGISTRY)/gcp-auth-webhook + docker push $(REGISTRY)/gcp-auth-webhook:$(VERSION)