-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
57 lines (48 loc) · 1.29 KB
/
Taskfile.yml
File metadata and controls
57 lines (48 loc) · 1.29 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
version: '3'
dotenv: [ '.env', '{{.SECAI_AGENT_DIR}}/config.env' ]
includes:
shared:
taskfile: ./config
flatten: true
tasks:
secai-start:
requires:
vars: [ SECAI_AGENT_DIR ]
dir: '{{.SECAI_AGENT_DIR}}'
cmd: task build
secai-build:
requires:
vars: [ SECAI_AGENT_DIR ]
dir: '{{.SECAI_AGENT_DIR}}'
cmd: task build
secai-gen-sql:
cmds:
- go run ./scripts/gen_sql_schema
- go tool sqlc generate
secai-gen-sql-agent:
requires:
vars: [ SECAI_AGENT_DIR ]
dir: "{{.SECAI_AGENT_DIR}}"
cmd: task gen-sql
deps-wasm-graph:
dir: web/browser
cmd: godepgraph -tags "wasm,js" -s . | dot -Tsvg -o deps-graph.svg
deps-wasm:
dir: web/browser
cmd: go list -deps
-f '{{ "{{" }}.ImportPath{{ "}}" }} {{ "{{" }}.Imports{{ "}}" }}'
-tags wasm,js .
> deps.md
release:
cmds:
- task --dir {{.SECAI_AGENT_DIR}} install-deps-wasm
- task --dir {{.SECAI_AGENT_DIR}} build-wasm
- task: gen-license
- rm -R dist/*
- go tool goreleaser release --clean --skip publish --skip validate
gen-license:
ignore_error: true
cmds:
- go tool go-licenses check .
- cp LICENSE LICENSE.md
- go tool go-licenses report ./ --template config/license.tpl >> LICENSE.md