From ca129f7393326ff8df9a0fcc321ed42380ba5c4d Mon Sep 17 00:00:00 2001 From: xing-yang Date: Tue, 31 Jul 2018 13:56:31 -0700 Subject: [PATCH] Modify Makefile Modify Makefile so that it is consistent with Makefiles in other sidecar containers repos. --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 76054eca8..3de6e47bf 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# 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. @@ -14,8 +14,10 @@ .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-attacher +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)