-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
40 lines (36 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.PHONY: releasegen
releasegen:
docker run \
--volume "$(CURDIR):/go/src/github.com/kramphub/kiya" \
--workdir "/go/src/github.com/kramphub/kiya" \
golang:1.14 \
bash -x etc/bin/releasegen.sh
# go get github.com/aktau/github-release
# export GITHUB_TOKEN=...
createrelease:
github-release info -u kramphub -r kiya
github-release release \
--user kramphub \
--repo kiya \
--tag $(shell git describe --abbrev=0 --tags) \
--name "kiya" \
--description "Kiya - secrets management tool"
uploadrelease:
github-release upload \
--user kramphub \
--repo kiya \
--tag $(shell git describe --abbrev=0 --tags) \
--name "kiya-Linux-x86_64" \
--file release/kiya-Linux-x86_64
github-release upload \
--user kramphub \
--repo kiya \
--tag $(shell git describe --abbrev=0 --tags) \
--name "kiya-Windows-x86_64" \
--file release/kiya-Windows-x86_64
github-release upload \
--user kramphub \
--repo kiya \
--tag $(shell git describe --abbrev=0 --tags) \
--name "kiya-Darwin-x86_64" \
--file release/kiya-Darwin-x86_64