-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
49 lines (41 loc) · 1.1 KB
/
Taskfile.yml
File metadata and controls
49 lines (41 loc) · 1.1 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
version: '3'
includes:
api:
taskfile: ./services/api/Taskfile.yml
dir: ./services/api
scheduler:
taskfile: ./services/scheduler/Taskfile.yml
dir: ./services/scheduler
mobile:
taskfile: ./apps/mobile/Taskfile.yml
dir: ./apps/mobile
docs:
taskfile: ./docs/Taskfile.yml
dir: ./docs
tasks:
default:
desc: Show available tasks
cmds:
- task --list
setup:
desc: First-time setup (install mobile dependencies)
cmds:
- task: mobile:install
clean:
desc: Wipe backend database (migrations run on next serve)
cmds:
- task: api:clean
docker:build:
desc: Build Docker image for linux/amd64
cmds:
- docker build --platform linux/amd64 -t registry.digitalocean.com/freebie/freebie-api:latest .
docker:push:
desc: Push Docker image to DigitalOcean registry
cmds:
- docker push registry.digitalocean.com/freebie/freebie-api:latest
deploy:
desc: Build, push, and restart API deployment
cmds:
- task: docker:build
- task: docker:push
- kubectl rollout restart deployment freebie-api -n freebies