27 lines
555 B
YAML
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
|