Reestructurar
This commit is contained in:
parent
f1b28cfde4
commit
a15f2d9559
8 changed files with 26 additions and 10 deletions
2
.gitattributes
vendored
2
.gitattributes
vendored
|
@ -1 +1 @@
|
||||||
*.png filter=lfs diff=lfs merge=lfs -text
|
*/*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|
8
Makefile
8
Makefile
|
@ -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
24
Taskfile.yml
Normal 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
|
|
@ -1,4 +1,4 @@
|
||||||
module nulo.in/dlbot/v4
|
module nulo.in/dlbot/tiktok/v4
|
||||||
|
|
||||||
go 1.18
|
go 1.18
|
||||||
|
|
Reference in a new issue