-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTaskfile.yml
More file actions
40 lines (34 loc) · 908 Bytes
/
Taskfile.yml
File metadata and controls
40 lines (34 loc) · 908 Bytes
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
# https://taskfile.dev
version: '3'
vars:
COMPOSE_DEV: docker compose
COMPOSE_PROD: docker compose -f docker-compose.prod.yml
includes:
dev:
taskfile: .taskfiles/dev.yml
vars:
COMPOSE_DEV: "{{.COMPOSE_DEV}}"
prod:
taskfile: .taskfiles/prod.yml
vars:
COMPOSE_PROD: "{{.COMPOSE_PROD}}"
db:
taskfile: .taskfiles/db.yml
vars:
COMPOSE_DEV: "{{.COMPOSE_DEV}}"
test:
taskfile: .taskfiles/test.yml
tasks:
default:
desc: Show available tasks
cmds:
- task --list
build:
desc: Build all containers
cmds:
- "{{.COMPOSE_DEV}} --profile dev_frontend --profile dev_backend build"
clean:
desc: Remove all containers and volumes
cmds:
- "{{.COMPOSE_DEV}} --profile dev_frontend --profile dev_backend down --volumes --remove-orphans"
- "{{.COMPOSE_PROD}} down --volumes --remove-orphans 2>/dev/null || true"