30 lines
660 B
YAML
30 lines
660 B
YAML
version: "3"
|
|
|
|
vars:
|
|
OUT: ./out/ytdl-web
|
|
VERSION: 1.0.0
|
|
VERSION_PKG: go.fifitido.net/ytdl-web/version
|
|
BUILD:
|
|
sh: git rev-parse --short HEAD
|
|
DATE:
|
|
sh: date
|
|
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: goreleaser build --single-target
|
|
dev: air
|
|
release: goreleaser release
|
|
|
|
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}}
|