-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathTaskfile.yml
More file actions
79 lines (64 loc) · 1.75 KB
/
Copy pathTaskfile.yml
File metadata and controls
79 lines (64 loc) · 1.75 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3'
includes:
cue:
taskfile: ./config/cue/Taskfile.yml
dir: ./config/cue
genesis-cue:
taskfile: ./config/genesis/cue/Taskfile.yml
dir: ./config/genesis/cue
tasks:
db-init:
desc: Initialize database user, database, and schema via psql
cmds:
- go run ./cmd/dbinit/main.go {{.CLI_ARGS}}
db-teardown:
desc: Drop database schema, database, and user via psql
cmds:
- go run ./cmd/dbteardown/main.go {{.CLI_ARGS}}
db-up:
desc: Run DDL up migration scripts found in the scripts/db/migrations/up directory
cmds:
- go run ./cmd/migrations/main.go {{.CLI_ARGS}}
run:
desc: Run the server
cmds:
- go run ./cmd/diy/main.go
test:
desc: Run all tests
cmds:
- go test ./...
test-verbose:
desc: Run all tests (verbose)
cmds:
- go test -v ./...
new-key:
desc: Generate a new encryption key
cmds:
- go run ./cmd/newkey/main.go
gcp-deploy:
desc: Build and deploy to GCP Cloud Run (not yet implemented)
cmds:
- echo "Not yet implemented — GCP deployment helpers need to be redesigned"
- exit 1
gcp-db-start:
desc: Start GCP Cloud SQL instance (not yet implemented)
cmds:
- echo "Not yet implemented"
- exit 1
gcp-db-stop:
desc: Stop GCP Cloud SQL instance (not yet implemented)
cmds:
- echo "Not yet implemented"
- exit 1
gen-config:
desc: Generate config from CUE schemas
cmds:
- task: cue:gen-config
gen-genesis-request:
desc: Generate config/genesis/request.json from genesis CUE files
cmds:
- task: genesis-cue:gen-genesis-request
genesis:
desc: Run the Genesis service to seed the database
cmds:
- go run ./cmd/genesis/main.go {{.CLI_ARGS}}