forked from camunda-community-hub/zeebe-full-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (37 loc) · 1.25 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
41
42
43
44
45
46
47
CHART_REPO := http://jenkins-x-chartmuseum:8080
NAME := zeebe-full
OS := $(shell uname)
CHARTMUSEUM_CREDS_USR := $(shell cat /tekton/home/basic-auth-user.json)
CHARTMUSEUM_CREDS_PSW := $(shell cat /tekton/home/basic-auth-pass.json)
init:
helm init --client-only
setup: init
helm repo add jenkins-x http://chartmuseum.jenkins-x.io
helm repo add elastic http://helm.elastic.co
helm repo add releases ${CHART_REPO}
build: clean setup
helm dependency build zeebe-full
helm lint zeebe-full
helm template zeebe-full
install: clean build
helm upgrade ${NAME} zeebe-full --install
upgrade: clean build
helm upgrade ${NAME} zeebe-full --install
delete:
helm delete --purge ${NAME} zeebe-full
clean:
rm -rf zeebe-full/charts
rm -rf zeebe-full/${NAME}*.tgz
rm -rf zeebe-full/requirements.lock
release: clean build
ifeq ($(OS),Darwin)
sed -i "" -e "s/version:.*/version: $(VERSION)/" zeebe-full/Chart.yaml
else ifeq ($(OS),Linux)
sed -i -e "s/version:.*/version: $(VERSION)/" zeebe-full/Chart.yaml
else
exit -1
endif
helm package zeebe-full
curl --fail -u $(CHARTMUSEUM_CREDS_USR):$(CHARTMUSEUM_CREDS_PSW) --data-binary "@$(NAME)-$(VERSION).tgz" $(CHART_REPO)/api/charts
rm -rf ${NAME}*.tgz
jx step changelog --verbose --version $(VERSION) --rev $(PULL_BASE_SHA)