-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
44 lines (44 loc) · 1.1 KB
/
Taskfile.yaml
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
version: "3"
dotenv:
- .local.env
vars:
MICROMAMBA_ENV: bank-account-manager
MICROMAMBA_FILE: "{{.MICROMAMBA_ENV}}.env.yaml"
tasks:
env:set:
sources:
- "{{.MICROMAMBA_FILE}}"
- requirements.txt
cmd: micromamba create -f '{{.MICROMAMBA_FILE}}' -y
mysql:up:
dir: ./databases/mysql
cmd: docker compose up -d
mysql:down:
dir: ./databases/mysql
cmd: docker compose down
mysql:delete:volume: docker volume rm mysql_data
mysql:restart:
cmds:
- task: mysql:down
- task: mysql:delete:volume
- task: mysql:up
postgres:up:
dir: ./databases/postgres
cmd: docker compose up -d
postgres:down:
dir: ./databases/postgres
cmd: docker compose down
postgres:delete:volume: docker volume rm postgres_data
postgres:restart:
cmds:
- task: postgres:down
- task: postgres:delete:volume
- task: postgres:up
app:
deps:
- env:set
cmd: micromamba -n '{{.MICROMAMBA_ENV}}' run python -m src.modules
generate:schemas:
deps:
- env:set
cmd: micromamba -n '{{.MICROMAMBA_ENV}}' run python -m src.models