forked from FederatedAI/KubeFATE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
23 lines (16 loc) · 755 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
BUILD-PATH = ${shell pwd}
K8S-DEPLOY="./k8s-deploy"
define sub_make
cd $1 && make $2 && cd ${BUILD-PATH}
endef
all: build-linux-binary zip build-docker-image
build-linux-binary:
$(call sub_make, ${K8S-DEPLOY}, build-linux-binary)
build-docker-image:
$(call sub_make, ${K8S-DEPLOY}, build-docker-image)
zip:
tar -czvf kubefate-docker-compose.tar.gz ./docker-deploy/* ./docker-deploy/.env
release: zip
${call sub_make, ${K8S-DEPLOY}, release RELEASE_VERSION=${RELEASE_VERSION}} && mv ${K8S-DEPLOY}/kubefate-k8s-${RELEASE_VERSION}.tar.gz ./ && curl -LJO https://federatedai.github.io/KubeFATE/package/fate-${RELEASE_VERSION}.tgz
clean:
rm kubefate-docker-compose.tar.gz kubefate-k8s-*.tar.gz fate-*.tgz && $(call sub_make, ${K8S-DEPLOY}, clean)