Skip to content

Commit 28cbb33

Browse files
committed
Modify Makefile
Modify Makefile so that it is consistent with Makefiles in other sidecar containers repos.
1 parent eca951f commit 28cbb33

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017 The Kubernetes Authors.
1+
# Copyright 2018 The Kubernetes Authors.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -14,8 +14,10 @@
1414

1515
.PHONY: all csi-snapshotter clean test
1616

17-
IMAGE_NAME=quay.io/k8scsi/csi-snapshotter
18-
IMAGE_VERSION=v0.3.0
17+
REGISTRY_NAME=quay.io/k8scsi
18+
IMAGE_NAME=csi-snapshotter
19+
IMAGE_VERSION=canary
20+
IMAGE_TAG=$(REGISTRY_NAME)/$(IMAGE_NAME):$(IMAGE_VERSION)
1921

2022
ifdef V
2123
TESTARGS = -v -args -alsologtostderr -v 5
@@ -34,10 +36,10 @@ clean:
3436
-rm -rf bin
3537

3638
container: csi-snapshotter
37-
docker build -t $(IMAGE_NAME):$(IMAGE_VERSION) .
39+
docker build -t $(IMAGE_TAG) .
3840

3941
push: container
40-
docker push $(IMAGE_NAME):$(IMAGE_VERSION)
42+
docker push $(IMAGE_TAG)
4143

4244
test:
4345
go test `go list ./... | grep -v 'vendor'` $(TESTARGS)

0 commit comments

Comments
 (0)