forked from pinpt/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (22 loc) · 764 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
#
# Makefile for building all things related to this repo
#
SHELL := /bin/bash
BASEDIR := $(shell echo $${PWD})
VERSION := $(shell git describe --always)
URL := https://pinpt.github.io/charts
.PHONY: build
build: install-helm
@helm package oklog -d $(BASEDIR)/docs --version $(VERSION)
@helm package mysql -d $(BASEDIR)/docs --version $(VERSION)
@helm repo index $(BASEDIR)/docs --url $(URL)
.PHONY: install-helm
install-helm:
ifeq (, $(shell which helm))
@echo need to install helm ...
ifeq ($(UNAME_S),Darwin)
@brew install kubernetes-helm
else ifeq ($(UNAME_S),Linux)
@mkdir -p $(GOPATH)/bin && cd /tmp && curl -L https://kubernetes-helm.storage.googleapis.com/helm-v2.7.2-linux-amd64.tar.gz | tar zxf - && mv linux-amd64/helm $(GOPATH)/bin
endif
endif