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
|
2023-04-14 22:42:44 -04:00
|
|
|
VERSION: 1.0.0
|
|
|
|
VERSION_PKG: go.fifitido.net/ytdl-web/version
|
|
|
|
BUILD:
|
|
|
|
sh: git rev-parse --short HEAD
|
2023-04-15 17:28:18 -04:00
|
|
|
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-14 23:37:52 -04:00
|
|
|
build: go build -ldflags="-X {{.VERSION_PKG}}.Version={{.VERSION}} -X {{.VERSION_PKG}}.Build={{.BUILD}}" -o {{.OUT}} .
|
2023-04-14 22:42:44 -04:00
|
|
|
dev: air
|
2023-04-15 17:28:18 -04:00
|
|
|
|
|
|
|
chart:publish: helm cm-push charts/ytdl-web/ gitea-apps
|
|
|
|
|
|
|
|
docker:build: docker build -t {{.DOCKER_IMAGE}}:{{.DOCKER_IMAGE_TAG}} .
|
|
|
|
docker:publish:
|
|
|
|
deps:
|
|
|
|
- docker:build
|
|
|
|
cmds:
|
|
|
|
- docker push {{.DOCKER_IMAGE}}:{{.DOCKER_IMAGE_TAG}}
|