-
Notifications
You must be signed in to change notification settings - Fork 222
/
Makefile
30 lines (24 loc) · 871 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
BUILD-PATH = ${shell pwd}
K8S-DEPLOY = ./k8s-deploy
CHART = ./helm-charts
FML = ./fml_manager
RELEASE_VERSION ?= ${shell git describe --tags}
define sub_make
cd $1 && make $2 && cd ${BUILD-PATH}
endef
all: release
release: k8s-release docker-compose-release helm-chart-release
mkdir -p ${BUILD-PATH}/release
mv ${K8S-DEPLOY}/release/* release/
mv ${BUILD-PATH}/kubefate-docker-compose-${RELEASE_VERSION}.tar.gz release/
mv ${CHART}/fate-*.tgz release/
clean:
rm -r release
k8s-release:
${call sub_make, ${K8S-DEPLOY}, release RELEASE_VERSION=${RELEASE_VERSION}}
docker-compose-release:
tar -czvf kubefate-docker-compose-${RELEASE_VERSION}.tar.gz ./docker-deploy/* ./docker-deploy/.env
helm-chart-release:
${call sub_make, ${CHART}, release RELEASE_VERSION=${RELEASE_VERSION}}
fml-release:
${call sub_make, ${FML}, docker-save VERSION=${RELEASE_VERSION}}