-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
31 lines (28 loc) · 901 Bytes
/
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
# See: https://taskfile.dev/api/
version: "3"
tasks:
up:
aliases:
- up
desc: "up migrations"
cmds:
- migrate -source file://./migrations/ -database postgres://myuser:mypass@localhost:5432/auth?sslmode=disable up
rollback:
aliases:
- down
desc: "down migrations"
cmds:
- migrate -source file://./migrations/ -database postgres://myuser:mypass@localhost:5432/auth?sslmode=disable down
drop:
aliases:
- migrations_test
desc: "run test migrations"
cmds:
- migrate -source file://./migrations/ -database postgres://myuser:mypass@localhost:5432/auth?sslmode=disable drop
db-start:
aliases:
- postgres
desc: "run docker postgres"
cmds:
- docker run --name sso-pos -e POSTGRES_DB=auth -e POSTGRES_USER=myuser -e POSTGRES_PASSWORD=mypass -p 5432:5432 -d postgres
# See: https://taskfile.dev/api/