-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathMakefile
41 lines (32 loc) · 947 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
CHART_REPO := http://jenkins-x-chartmuseum:8080
NAME := prow
OS := $(shell uname)
init:
helm init --client-only
setup: init
helm repo add jenkins-x http://chartmuseum.jenkins-x.io
build: clean setup
helm dependency build prow
helm lint prow
install: clean build
helm upgrade ${NAME} prow --install
upgrade: clean build
helm upgrade ${NAME} prow --install
delete:
helm delete --purge ${NAME} prow
clean:
rm -rf prow/charts
rm -rf prow/${NAME}*.tgz
rm -rf prow/requirements.lock
release: clean build
ifeq ($(OS),Darwin)
sed -i "" -e "s/version:.*/version: $(VERSION)/" prow/Chart.yaml
else ifeq ($(OS),Linux)
sed -i -e "s/version:.*/version: $(VERSION)/" prow/Chart.yaml
else
exit -1
endif
helm package prow
curl --fail -u $(CHARTMUSEUM_USER):$(CHARTMUSEUM_PASS) --data-binary "@$(NAME)-$(VERSION).tgz" $(CHART_REPO)/api/charts
rm -rf ${NAME}*.tgz
jx step changelog --verbose --version $(VERSION) --rev $(PULL_BASE_SHA)