-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
42 lines (35 loc) · 1.31 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
REGISTRY = univer-acr-registry.cn-shenzhen.cr.aliyuncs.com
NS = helm-charts
BUILD_DIR = build
.PHONY: all
all: prepare universer collaboration-server collaboration-demo worker univer-stack
.PHONY: prepare
prepare:
# Prepare build dir
@mkdir -p $(BUILD_DIR)
.PHONY: universer
universer: prepare
# Build and push universer chart
@helm package charts/universer -d $(BUILD_DIR)
@helm push $(BUILD_DIR)/universer-*.tgz oci://$(REGISTRY)/$(NS)
.PHONY: collaboration-server
collaboration-server: prepare
# Build and push collaboration-server chart
@helm package charts/collaboration-server -d $(BUILD_DIR)
@helm push $(BUILD_DIR)/collaboration-server-*.tgz oci://$(REGISTRY)/$(NS)
.PHONY: collaboration-demo
collaboration-demo: prepare
# Build and push collaboration-demo chart
@helm package charts/collaboration-demo -d $(BUILD_DIR)
@helm push $(BUILD_DIR)/collaboration-demo-*.tgz oci://$(REGISTRY)/$(NS)
.PHONY: worker
worker: prepare
# Build and push worker chart
@helm package charts/worker -d $(BUILD_DIR)
@helm push $(BUILD_DIR)/worker-*.tgz oci://$(REGISTRY)/$(NS)
.PHONY: univer-stack
univer-stack: prepare
# Build and push univer-stack chart
@helm dependency build charts/univer-stack --skip-refresh
@helm package charts/univer-stack -d $(BUILD_DIR)
@helm push $(BUILD_DIR)/univer-stack-*.tgz oci://$(REGISTRY)/$(NS)