-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskfile.yaml
More file actions
75 lines (60 loc) · 1.83 KB
/
taskfile.yaml
File metadata and controls
75 lines (60 loc) · 1.83 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# TODO: Use this instead https://github.com/casey/just?
version: '3'
env:
MANAGER_DASHBOARD_COMMIT_HASH:
sh: ./scripts/get-commit-hash.sh .git/modules/manager-dashboard
COMMUNITY_DASHBOARD_COMMIT_HASH:
sh: ./scripts/get-commit-hash.sh .git/modules/community-dashboard
BACKEND_COMMIT_HASH:
sh: ./scripts/get-commit-hash.sh .git/modules/mapswipe-backend
tasks:
# Web apps
web-build-manager:
cmds:
- docker compose --profile web-builds up --build --abort-on-container-exit manager-dashboard
web-build-community:
cmds:
- docker compose --profile web-builds up --build --abort-on-container-exit community-dashboard
web-builds:
cmds:
- task: web-build-community
- task: web-build-manager
- echo "Success"
# Backend
backend-build-web:
cmds:
- docker compose --profile core build web
backend-build-worker:
cmds:
- docker compose --profile core build worker
- docker compose --profile core build worker-beat
backend-builds:
cmds:
- task: backend-build-web
- task: backend-build-worker
- echo "Success"
backend-migration:
cmds:
- docker compose --profile core run --rm web ./manage.py migrate
backend-collect-static:
cmds:
- docker compose --profile core run --rm web ./manage.py collectstatic --noinput
backend-post-deploy:
cmds:
- task: backend-migration
- task: backend-collect-static
backend-deploy:
cmds:
- task: backend-builds
- docker compose --profile core up -d web worker worker-beat
- task: backend-post-deploy
# Misc
caddy-deploy:
cmd: docker compose --profile core up -d caddy
deploy:
cmds:
- task: backend-deploy
- task: web-builds
- task: caddy-deploy
logs:
cmd: docker compose --profile core logs -f --tail 1000 {{.CLI_ARGS}}