-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yml
58 lines (57 loc) · 1.35 KB
/
Taskfile.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: "3"
tasks:
build:fronted:
cmds:
- cd fronted;pnpm i;pnpm run build;cd ..
silent: true
build:core:
cmds:
- cd core;GOOS=linux GOARCH=amd64 go build;cd ..
silent: true
build:stdb:
cmds:
- cd stdb;mvn package -Dmaven.test.skip=true;cd ..
silent: true
docker:build:fronted:
deps:
- build:fronted
cmds:
- cd fronted;docker build -t jaronnie/ragingcd-fronted:latest .;cd ..
silent: true
docker:build:core:
deps:
- build:core
cmds:
- cd core;docker build -t jaronnie/ragingcd-core:latest .;cd ..
silent: true
docker:build:stdb:
deps:
- build:stdb
cmds:
- cd stdb;docker build -t jaronnie/ragingcd-stdb:latest .;cd ..
silent: true
docker:push:fronted:
deps:
- docker:build:fronted
cmds:
- docker push jaronnie/ragingcd-fronted:latest
docker:push:core:
deps:
- docker:build:core
cmds:
- docker push jaronnie/ragingcd-core:latest
docker:push:stdb:
deps:
- docker:build:stdb
cmds:
- docker push jaronnie/ragingcd-stdb:latest
deploy:production:
cmds:
- docker-compose -f docker-compose-production.yaml up -d
deploy:dev:
deps:
- build:fronted
- build:stdb
- build:core
cmds:
- docker-compose -f docker-compose-dev.yaml up -d --build