File tree 2 files changed +6
-8
lines changed
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
10
10
LDFLAGS ?= -X github.com/digitalocean/csi-digitalocean/driver.version=${VERSION} -X github.com/digitalocean/csi-digitalocean/driver.commit=${COMMIT} -X github.com/digitalocean/csi-digitalocean/driver.gitTreeState=${GIT_TREE_STATE}
11
11
PKG ?= github.com/digitalocean/csi-digitalocean/cmd/do-csi-plugin
12
12
13
- # # Bump the version in the version file. Set BUMP to [ major | minor | patch ]
14
- BUMP := patch
15
13
VERSION ?= $(shell cat VERSION)
16
14
17
15
all : test
@@ -20,8 +18,8 @@ publish: compile build push clean
20
18
21
19
.PHONY : bump-version
22
20
bump-version :
23
- @go get -u github.com/jessfraz/junk/sembump # update sembump tool
24
- $( eval NEW_VERSION = $( shell sembump --kind $( BUMP ) $( VERSION ) ) )
21
+ @[ " ${NEW_VERSION} " ] || ( echo " NEW_VERSION must be set (ex. make NEW_VERSION=v1.x.x bump-version) " ; exit 1 )
22
+ @ (echo ${ NEW_VERSION} | grep -E " ^v " ) || ( echo " NEW_VERSION must be a semver ('v' prefix is required) " ; exit 1 )
25
23
@echo " Bumping VERSION from $( VERSION) to $( NEW_VERSION) "
26
24
@echo $(NEW_VERSION ) > VERSION
27
25
@cp deploy/kubernetes/releases/csi-digitalocean-${VERSION} .yaml deploy/kubernetes/releases/csi-digitalocean-${NEW_VERSION} .yaml
Original file line number Diff line number Diff line change @@ -36,19 +36,19 @@ bumped following the rules below:
36
36
</thead >
37
37
<tbody >
38
38
<tr>
39
- <td>v0.1.0 - v0.2.x</td>
39
+ <td>v0.1.x - v0.2.x</td>
40
40
<td>yes</td>
41
41
<td>no</td>
42
42
<td>no</td>
43
43
</tr>
44
44
<tr>
45
- <td>v0.3.0 - v0.4.x</td>
45
+ <td>v0.3.x - v0.4.x</td>
46
46
<td>no</td>
47
47
<td>yes</td>
48
48
<td>no</td>
49
49
</tr>
50
50
<tr>
51
- <td>v1.0.0 - v1.0.x</td>
51
+ <td>v1.0.x - v1.0.x</td>
52
52
<td>no</td>
53
53
<td>no</td>
54
54
<td>yes</td>
@@ -226,7 +226,7 @@ Dependencies are managed via [Go modules](https://github.com/golang/go/wiki/Modu
226
226
To release a new version bump first the version:
227
227
228
228
```
229
- $ make bump-version
229
+ $ make NEW_VERSION=v1.0.0 bump-version
230
230
```
231
231
232
232
Make sure everything looks good. Create a new branch with all changes:
You can’t perform that action at this time.
0 commit comments