Skip to content

Commit

Permalink
Modify Makefile
Browse files Browse the repository at this point in the history
Modify Makefile so that it is consistent with Makefiles in other
sidecar containers repos.
  • Loading branch information
xing-yang committed Aug 1, 2018
1 parent eca951f commit ca129f7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit ca129f7

Please sign in to comment.