forked from unkeyed/unkey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
43 lines (35 loc) · 856 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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: ./apps/agent/pkg/clickhouse/schema
cmds:
- goose up
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