-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
29 lines (24 loc) · 990 Bytes
/
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
version: '3'
tasks:
default:
cmds:
- task --list
run:
desc: Runs the script with the provided name (clean, upgrade, install)
cmds:
- sh scripts/{{.CLI_ARGS}}.sh
setup:
desc: Setups the complete dev environment (installing dependencies, bootstrapping the database)
cmds:
- docker compose -f backend/docker/docker-compose.dev.yml --env-file backend/app/.env.development -p sqliqour-dev up -d
- sleep 5
- cd backend/app && bun drizzle:migrate
test-deployment:
desc: Starts the production containers
cmds:
- docker compose -f deploy/docker-compose.prod.yml --env-file deploy/.env.production -p sqliqour-prod up -d --build
stop:
desc: Stops the dev environment
cmds:
- docker compose -f backend/docker/docker-compose.dev.yml --env-file backend/app/.env.development -p sqliqour-dev down
- docker compose -f deploy/docker-compose.prod.yml --env-file deploy/.env.production -p sqliqour-prod down