forked from unkeyed/unkey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
50 lines (42 loc) · 1.04 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: '3'
tasks:
build:
cmds:
- docker compose -f ./deployment/docker-compose.yaml build
down:
cmds:
- docker compose -f ./deployment/docker-compose.yaml down
up:
deps: [down, build]
cmds:
- docker compose -f ./deployment/docker-compose.yaml up -d
migrate:
cmds:
- task: migrate-db
- task: migrate-clickhouse
migrate-clickhouse:
env:
GOOSE_DRIVER: clickhouse
GOOSE_DBSTRING: "tcp://default:[email protected]:9000"
GOOSE_MIGRATION_DIR: ./internal/clickhouse/schema
cmds:
- goose up
migrate-clickhouse-reset:
env:
GOOSE_DRIVER: clickhouse
GOOSE_DBSTRING: "tcp://default:[email protected]:9000"
GOOSE_MIGRATION_DIR: ./internal/clickhouse/schema
cmds:
- goose down-to 0
migrate-db:
env:
DRIZZLE_DATABASE_URL: "mysql://unkey:password@localhost:3306/unkey"
dir: internal/db
cmds:
- pnpm drizzle-kit push
integration:
deps: [up]
dir: apps/api
cmds:
- task: seed
- pnpm test:integration