forked from damongolding/immich-kiosk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
taskfile.yml
47 lines (38 loc) · 1.15 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
version: "3"
env:
VERSION: 0.9.0
tasks:
default:
deps: [build]
cmds:
- KIOSK_DEBUG=true ./dist/kiosk
frontend:
dir: ./frontend
cmds:
- pnpm build
templ:
cmds:
- templ generate
test:
cmds:
- go test ./...
build:
deps: [frontend, templ]
cmds:
- CGO_ENABLED=0 go build -ldflags "-X main.version={{.VERSION}}" -o dist/kiosk .
docker-image:
cmds:
- docker build --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:
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:
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 -m -u all