Skip to content

Commit 43968e8

Browse files
Merge pull request kubernetes#1 from sharifelgamal/master
add versioning and tag v0.0.1
2 parents 106703a + 56152c7 commit 43968e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
REGISTRY?=gcr.io/k8s-minikube
2+
VERSION=v0.0.1
23

34
build:
45
CGO_ENABLED=0 GOOS=linux go build -o out/gcp-auth-webhook -ldflags=$(PROVISIONER_LDFLAGS) server.go
56

67
.PHONY: image
78
image: build
8-
docker build -t $(REGISTRY)/gcp-auth-webhook -f Dockerfile ./out
9+
docker build -t $(REGISTRY)/gcp-auth-webhook:$(VERSION) -f Dockerfile ./out
910

1011

1112
.PHONY: push
1213
push: image
13-
docker push $(REGISTRY)/gcp-auth-webhook
14+
docker push $(REGISTRY)/gcp-auth-webhook:$(VERSION)
1415

0 commit comments

Comments
 (0)