-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
58 lines (42 loc) · 980 Bytes
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
SHELL := $(shell which bash)
.SHELLFLAGS := -eo pipefail -c
REPO_URL := https://flypenguin.github.io/helm-stasico/
_lint:
helm lint stasico
.PHONY: _lint
_minor: _lint
bumpversion minor
.PHONY: _minor
_major: _lint
bumpversion major
.PHONY: _major
_patch: _lint
bumpversion patch
.PHONY: _patch
_package:
helm repo index --url ${REPO_URL} ./docs
helm package -d ./docs stasico
.PHONY: _package
_commit:
@if ! git diff --quiet docs/ ; then \
git add docs/ ; \
git commit -m "add new version binary" ; \
fi ; \
echo "Execute 'make upload' for pushing."
.PHONY: _commit
minor: _minor _package _commit
.PHONY: minor
major: _major _package _commit
.PHONY: major
patch: _patch _package _commit
.PHONY: patch
chart: _chart _commit
.PHONY: chart
package: _package
.PHONY: package
commit: _commit
.PHONY: commit
upload:
@git diff --quiet || (echo "Please commit before uploading, working dir is dirty." && false)
git push && git push --tags
.PHONY: upload