Update build task
This commit is contained in:
parent
06eaade72b
commit
bc32a09a5d
11
Taskfile.yml
11
Taskfile.yml
|
@ -7,7 +7,7 @@ vars:
|
||||||
BUILD:
|
BUILD:
|
||||||
sh: git rev-parse --short HEAD
|
sh: git rev-parse --short HEAD
|
||||||
DATE:
|
DATE:
|
||||||
sh: date
|
sh: date -Iseconds
|
||||||
DOCKER_IMAGE: git.fifitido.net/apps/ytdl-web
|
DOCKER_IMAGE: git.fifitido.net/apps/ytdl-web
|
||||||
DOCKER_IMAGE_TAG: latest
|
DOCKER_IMAGE_TAG: latest
|
||||||
|
|
||||||
|
@ -15,7 +15,14 @@ tasks:
|
||||||
deps: go mod download
|
deps: go mod download
|
||||||
tidy: go mod tidy
|
tidy: go mod tidy
|
||||||
check: goreleaser check
|
check: goreleaser check
|
||||||
build: goreleaser build --single-target
|
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
|
dev: air
|
||||||
release: goreleaser release
|
release: goreleaser release
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue