Swagger to deploy

This commit is contained in:
Bel LaPointe
2020-07-24 23:41:33 -06:00
parent 663579aeae
commit 4069fd822f
3 changed files with 6 additions and 5 deletions

View File

@@ -5,8 +5,9 @@ function main() {
set -e
go test ./...
GOOS=linux GOARCH=arm GOARM=5 CGO_ENABLED=0 go build -o $(basename "$PWD") -a -installsuffix cgo
scp ./dndex zach@192.168.1.123:./dndex/dndex.new
ssh zach@192.168.1.123 bash -c 'true; while [ -e ./dndex/dndex.new ]; do printf "."; sleep 3; done; echo'
scp ./public/swagger/* zach@tickle.lan:./dndex/files/swagger/
scp ./dndex zach@tickle.lan:./dndex/dndex.new
ssh zach@tickle.lan bash -c 'true; while [ -e ./dndex/dndex.new ]; do printf "."; sleep 3; done; echo'
}
if [ "$0" == "$BASH_SOURCE" ]; then