lobby2/Taskfile.yml
Adam Štrauch ae6ca5c185
All checks were successful
Tests / test (push) Successful in 12s
Support for Prometheus SD
2024-12-22 13:40:50 +01:00

27 lines
555 B
YAML

# https://taskfile.dev
version: '3'
vars:
VERSION: 0.0.0
tasks:
docs:
cmds:
- swag i --parseDependency --dir api
silent: false
test:
cmds:
- go mod tidy
- go test -v ./...
silent: false
build:
cmds:
- go mod tidy
- mkdir -p bin
- env CGO_ENABLED=0 go build -o bin/lobby2-{{ .VERSION }}-linux-amd64 cli/*.go
deploy:
cmds:
- task: build
- scp bin/lobby2-{{ .VERSION }}-linux-amd64 rosti-db:/usr/local/bin/lobby2.tmp
- ssh rosti-db mv /usr/local/bin/lobby2.tmp /usr/local/bin/lobby2