-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
62 lines (53 loc) · 1.11 KB
/
Taskfile.yml
File metadata and controls
62 lines (53 loc) · 1.11 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
# https://taskfile.dev
version: "3"
tasks:
dev:
cmds:
- go build -o ./tmp/ ./cmd/...
sources:
- "**/*.go"
- "migrations/*.sql"
- "go.mod"
- "go.sum"
generates:
- "./tmp/thoughts"
build-ui:
cmds:
- pnpm --prefix=ui run build
sources:
- "ui/*.*"
- "ui/src/**"
generates:
- "ui/dist/**"
build:
deps: [build-ui]
cmds:
- go build -tags bundled -o ./build/ ./cmd/...
sources:
- "**/*.go"
- "ui/dist/**"
- "migrations/*.sql"
- "go.mod"
- "go.sum"
generates:
- "./build/thoughts"
run:
deps: [build]
cmds:
- ./build/thoughts
docker-build:
cmds:
- docker build -t thoughts .
- docker image prune -f
docker-run:
deps: [docker-build]
cmds:
- docker run -p 3000:3000 thoughts:latest
tools:
cmds:
- go install github.com/pressly/goose/v3/cmd/goose@latest
- go install github.com/goreleaser/goreleaser/v2@latest
release:
desc: "Test the release process"
cmds:
- goreleaser build --single-target --snapshot --clean