Reestructurar

This commit is contained in:
Cat /dev/Nulo 2023-01-02 22:34:40 -03:00
parent f1b28cfde4
commit a15f2d9559
8 changed files with 26 additions and 10 deletions

2
.gitattributes vendored
View file

@ -1 +1 @@
*.png filter=lfs diff=lfs merge=lfs -text
*/*.png filter=lfs diff=lfs merge=lfs -text

View file

@ -1,8 +0,0 @@
.PHONY: dlbot
dlbot:
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' .
upload: dlbot
ssh -p993 root@nulo.in sv stop dlbot
scp -P993 dlbot dlbot@nulo.in:/home/dlbot/bin/
ssh -p993 root@nulo.in sv start dlbot

24
Taskfile.yml Normal file
View file

@ -0,0 +1,24 @@
version: '3'
tasks:
build:
dir: "{{.WHICH}}"
label: "build-{{.WHICH}}"
cmds:
- CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' .
upload:
deps:
- task: build
vars:
WHICH: "{{.WHICH}}"
dir: "{{.WHICH}}"
label: "upload-{{.WHICH}}"
cmds:
- ssh -p993 root@nulo.in sv stop dlbot-{{.WHICH}}
- scp -P993 {{.WHICH}} dlbot@nulo.in:/home/dlbot/bin/
- ssh -p993 root@nulo.in sv start dlbot-{{.WHICH}}
upload-all:
deps:
- task: upload
vars:
WHICH: tiktok

View file

@ -1,4 +1,4 @@
module nulo.in/dlbot/v4
module nulo.in/dlbot/tiktok/v4
go 1.18