Skip to content

Commit

Permalink
Bump driver version to 0.2.0 (#154)
Browse files Browse the repository at this point in the history
Fixes: #144

Differentiates container image push between latest and tag and Update READEM
  • Loading branch information
Cheng Pan authored Dec 21, 2018
1 parent 85b09b3 commit 8f522f1
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

PKG=github.com/kubernetes-sigs/aws-ebs-csi-driver
IMAGE=amazon/aws-ebs-csi-driver
VERSION=0.1.0-alpha
VERSION=0.2.0
GIT_COMMIT?=$(shell git rev-parse HEAD)
BUILD_DATE?=$(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
LDFLAGS?="-X ${PKG}/pkg/driver.driverVersion=${VERSION} -X ${PKG}/pkg/driver.gitCommit=${GIT_COMMIT} -X ${PKG}/pkg/driver.buildDate=${BUILD_DATE}"
Expand All @@ -37,10 +37,18 @@ test-integration:
go test -c ./tests/integration/... -o bin/integration.test && \
sudo -E bin/integration.test -ginkgo.v

.PHONY: image-release
image-release:
docker build -t $(IMAGE):$(VERSION) .

.PHONY: image
image:
docker build -t $(IMAGE):$(VERSION) .
docker build -t $(IMAGE):latest .

.PHONY: push-release
push-release:
docker push $(IMAGE):$(VERSION)

.PHONY: push
push:
docker push $(IMAGE):$(VERSION)
docker push $(IMAGE):latest
2 changes: 1 addition & 1 deletion deploy/kubernetes/latest/attacher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ spec:
capabilities:
add: ["SYS_ADMIN"]
allowPrivilegeEscalation: true
image: amazon/aws-ebs-csi-driver:0.1.0-alpha
image: amazon/aws-ebs-csi-driver:latest
args :
- --endpoint=$(CSI_ENDPOINT)
- --logtostderr
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes/latest/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ spec:
securityContext:
privileged: true
imagePullPolicy: Always
image: amazon/aws-ebs-csi-driver:0.1.0-alpha
image: amazon/aws-ebs-csi-driver:latest
args:
- --endpoint=$(CSI_ENDPOINT)
- --logtostderr
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes/latest/provisioner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ spec:
capabilities:
add: ["SYS_ADMIN"]
allowPrivilegeEscalation: true
image: amazon/aws-ebs-csi-driver:0.1.0-alpha
image: amazon/aws-ebs-csi-driver:latest
args :
- --endpoint=$(CSI_ENDPOINT)
- --logtostderr
Expand Down
8 changes: 7 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,17 @@ make test-integration

### Build and Publish Container Image

Build and publish container image of the driver is as simple as building the image and pushing it to the container registry with the command:
Build image and push it with latest tag:

```
make image && make push
```

Build image and push it with release tag:

```
make image-release && make push-release
```

## Milestone
[Milestones page](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/milestones)

0 comments on commit 8f522f1

Please sign in to comment.