37 lines
786 B
YAML
37 lines
786 B
YAML
version: "3"
|
|
|
|
vars:
|
|
OUT: ./out/ytdl-web
|
|
VERSION: 1.0.2
|
|
VERSION_PKG: go.fifitido.net/ytdl-web/version
|
|
BUILD:
|
|
sh: git rev-parse --short HEAD
|
|
DATE:
|
|
sh: date -Iseconds
|
|
DOCKER_IMAGE: git.fifitido.net/apps/ytdl-web
|
|
DOCKER_IMAGE_TAG: latest
|
|
|
|
tasks:
|
|
deps: go mod download
|
|
tidy: go mod tidy
|
|
check: goreleaser check
|
|
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}} .
|
|
dev: air
|
|
clean:
|
|
cmds:
|
|
- rm -rf ./dist/ ./out/ ./tmp/
|
|
- go clean
|
|
release:
|
|
deps:
|
|
- clean
|
|
cmds:
|
|
- goreleaser release
|
|
publish-chart: helm cm-push charts/ytdl-web/ gitea-apps
|