File tree Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,13 @@ ifndef HAS_GLIDE
36
36
endif
37
37
glide install --strip-vendor
38
38
39
+ .PHONY : docker-run-release
40
+ docker-run-release : export pkg=/go/src/github.com/databus23/helm-diff
41
+ docker-run-release :
42
+ git checkout master
43
+ git push
44
+ docker run -it --rm -e GITHUB_TOKEN -v $(shell pwd) :$(pkg ) -w $(pkg ) golang:1.12.5 make bootstrap release
45
+
39
46
.PHONY : dist
40
47
dist : export COPYFILE_DISABLE=1 # teach OSX tar to not put ._* files in tar archive
41
48
dist :
@@ -57,5 +64,4 @@ release: dist
57
64
ifndef GITHUB_TOKEN
58
65
$(error GITHUB_TOKEN is undefined)
59
66
endif
60
- git push
61
- github-release databus23/helm-diff v$(VERSION) master "v$(VERSION)" "release/*"
67
+ scripts/release.sh v$(VERSION) master
Original file line number Diff line number Diff line change @@ -229,3 +229,11 @@ To run all tests:
229
229
```
230
230
go test -v ./...
231
231
```
232
+
233
+ ## Release
234
+
235
+ Set ` GITHUB_TOKEN ` and run:
236
+
237
+ ```
238
+ $ make docker-run-release
239
+ ```
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ go get github.com/aktau/github-release
4
+
5
+ user=databus23
6
+ repo=helm-diff
7
+ tag=$1
8
+ commit=$2
9
+
10
+ github-release release -u $user -r $repo -t $tag -c $commit -n $tag
11
+
12
+ for f in $( ls release) ; do
13
+ github-release upload -u $user -r $repo -t $tag -n $f -f release/$f
14
+ done
You can’t perform that action at this time.
0 commit comments