Modify Makefile
Modify Makefile so that it is consistent with Makefiles in other
sidecar containers repos.
-# Copyright 2017 The Kubernetes Authors.
+# Copyright 2018 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
.PHONY: all csi-snapshotter clean test
-IMAGE_NAME=quay.io/k8scsi/csi-snapshotter
-IMAGE_VERSION=v0.3.0
+REGISTRY_NAME=quay.io/k8scsi
+IMAGE_NAME=csi-snapshotter
+IMAGE_VERSION=canary
+IMAGE_TAG=$(REGISTRY_NAME)/$(IMAGE_NAME):$(IMAGE_VERSION)
ifdef V
TESTARGS = -v -args -alsologtostderr -v 5
@@ -34,10 +36,10 @@ clean:
-rm -rf bin
container: csi-snapshotter
- docker build -t $(IMAGE_NAME):$(IMAGE_VERSION) .
+ docker build -t $(IMAGE_TAG) .
push: container
- docker push $(IMAGE_NAME):$(IMAGE_VERSION)
+ docker push $(IMAGE_TAG)
test:
go test `go list ./... | grep -v 'vendor'` $(TESTARGS)
