forked from damongolding/immich-kiosk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
taskfile.yml
93 lines (75 loc) · 2.11 KB
/
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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: "3"
env:
VERSION: 0.13.0-beta.3
tasks:
default:
deps: [build]
cmds:
- KIOSK_DEBUG=true ./dist/kiosk
verbose:
deps: [build-verbose]
cmds:
- KIOSK_DEBUG_VERBOSE=true ./dist/kiosk
frontend:
deps: [frontend-test, frontend-css, frontend-js]
dir: ./frontend
cmds:
- pnpm lint
frontend-build:
dir: ./frontend
cmds:
- pnpm build
frontend-test:
dir: ./frontend
cmds:
- pnpm test
frontend-css:
dir: ./frontend
cmds:
- pnpm css
frontend-js:
dir: ./frontend
cmds:
- pnpm js
templ:
cmds:
- templ generate
test:
cmds:
- go test ./...
lint:
cmds:
- golangci-lint run
build:
deps: [frontend, templ]
cmds:
- go generate *.go
- CGO_ENABLED=0 go build -installsuffix cgo -ldflags "-X main.version={{.VERSION}}" -o dist/kiosk .
build-verbose:
deps: [frontend, templ]
cmds:
- go generate *.go
- CGO_ENABLED=0 go build -installsuffix cgo -ldflags "-X main.version={{.VERSION}} -X github.com/damongolding/immich-kiosk/routes.drawFacesOnImages=true" -o dist/kiosk .
docker-image:
deps: [build]
cmds:
- docker build --no-cache --build-arg VERSION={{.VERSION}} --load -t damongolding/immich-kiosk:{{.VERSION}} -t damongolding/immich-kiosk:latest .
docker-buildx:
cmds:
- docker buildx create --name mybuilder --use
- docker buildx install
docker-image-push:
deps: [build]
cmds:
- docker build --build-arg VERSION={{.VERSION}} --platform linux/amd64,linux/arm64 --push -t damongolding/immich-kiosk:{{.VERSION}} -t damongolding/immich-kiosk:latest .
docker-dev-push:
deps: [build]
cmds:
- docker build --build-arg VERSION={{.VERSION}}-DEVELOPMENT --platform linux/amd64,linux/arm64 --push -t damongolding/immich-kiosk-development:{{.VERSION}} -t damongolding/immich-kiosk-development:latest .
outdated:
cmds:
- go list -u -m -json all | go-mod-outdated -direct -update
- cd frontend && pnpm outdated
update-templ:
cmds:
- go install github.com/a-h/templ/cmd/templ@latest