-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathMakefile
37 lines (25 loc) · 928 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
.PHONY: run install build image push clean
tag = latest
releaseName = pixiu-dashboard
dockerhubUser = crpi-0ecikjs9ylb2hqyo.cn-hangzhou.personal.cr.aliyuncs.com
ALL: run
install:
npm install
run: install
npm run serve
build: install
npm run build
image:
docker build --no-cache -t ${dockerhubUser}/pixiu-public/${releaseName}:${tag} --platform=linux -f docker/Dockerfile .
push: image
docker push ${dockerhubUser}/pixiu-public/${releaseName}:${tag}
image-aio:
docker build --no-cache -t ${dockerhubUser}/pixiu-public/pixiu:${tag} --platform=linux -f docker/Dockerfile-aio .
push-aio: image-aio
docker push ${dockerhubUser}/pixiu-public/pixiu:${tag}
image-aio-v1:
docker build --no-cache -t ${dockerhubUser}/pixiu-public/pixiu-aio:v1.0.0 --platform=linux -f docker/Dockerfile-aio-v1 .
push-aio-v1: image-aio-v1
docker push ${dockerhubUser}/pixiu-public/pixiu-aio:v1.0.0
clean:
-rm -rf ./dist ./node_modules