ytdl-web/Taskfile.yml

37 lines
786 B
YAML
Raw Permalink Normal View History

2023-04-14 11:58:32 -04:00
version: "3"
2023-04-14 22:42:44 -04:00
vars:
2023-04-14 23:37:52 -04:00
OUT: ./out/ytdl-web
VERSION: 1.0.3
2023-04-14 22:42:44 -04:00
VERSION_PKG: go.fifitido.net/ytdl-web/version
BUILD:
sh: git rev-parse --short HEAD
2023-04-15 18:24:23 -04:00
DATE:
2023-04-15 18:32:52 -04:00
sh: date -Iseconds
DOCKER_IMAGE: git.fifitido.net/apps/ytdl-web
DOCKER_IMAGE_TAG: latest
2023-04-14 22:42:44 -04:00
2023-04-14 11:58:32 -04:00
tasks:
deps: go mod download
tidy: go mod tidy
2023-04-15 18:24:23 -04:00
check: goreleaser check
2023-04-15 18:32:52 -04:00
build: >
go build -ldflags="
-X {{.VERSION_PKG}}.Version={{.VERSION}}
-X {{.VERSION_PKG}}.Build={{.BUILD}}
-X {{.VERSION_PKG}}.BuildDate={{.DATE}}
-X {{.VERSION_PKG}}.BuiltBy=taskfile
"
-o {{.OUT}} .
2023-04-14 22:42:44 -04:00
dev: air
2023-04-15 20:08:42 -04:00
clean:
cmds:
2023-04-15 20:09:30 -04:00
- rm -rf ./dist/ ./out/ ./tmp/
- go clean
2023-04-15 20:08:42 -04:00
release:
deps:
- clean
cmds:
- goreleaser release
2023-04-15 19:26:02 -04:00
publish-chart: helm cm-push charts/ytdl-web/ gitea-apps