lobby2/Taskfile.yml

28 lines
555 B
YAML
Raw Normal View History

2024-12-08 01:30:07 +00:00
# https://taskfile.dev
version: '3'
2024-12-08 11:22:35 +00:00
vars:
VERSION: 0.0.0
2024-12-08 01:30:07 +00:00
tasks:
docs:
cmds:
- swag i --parseDependency --dir api
2024-12-08 01:48:48 +00:00
silent: false
test:
cmds:
- go mod tidy
- go test -v ./...
silent: false
2024-12-08 11:22:35 +00:00
build:
cmds:
- go mod tidy
2024-12-08 16:30:36 +00:00
- mkdir -p bin
2024-12-11 00:05:45 +00:00
- env CGO_ENABLED=0 go build -o bin/lobby2-{{ .VERSION }}-linux-amd64 cli/*.go
2024-12-22 12:40:50 +00:00
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