Actually use rate limited storage, add /version with -dirty
This commit is contained in:
20
deploy.sh
20
deploy.sh
@@ -7,21 +7,37 @@ function main() {
|
||||
if [ -z "$NOTEST" ]; then
|
||||
go test ./...
|
||||
fi
|
||||
GOOS=linux GOARCH=arm GOARM=5 CGO_ENABLED=0 go build -o $exec -a -installsuffix cgo
|
||||
GOARCH=arm GOARM=5 gobuild $exec
|
||||
for authed in dndex dndex-auth; do
|
||||
scp ./public/swagger/* zach@tickle.lan:./$authed/files/swagger/
|
||||
scp $exec zach@tickle.lan:./$authed/dndex.new
|
||||
ssh zach@tickle.lan bash -c "true; while [ -e ./$authed/dndex.new ]; do printf '.'; sleep 3; done; echo"
|
||||
done &
|
||||
wait
|
||||
GOOS=linux CGO_ENABLED=0 go build -o $exec -a -installsuffix cgo
|
||||
gobuild $exec
|
||||
scp $exec bel@remote.blapointe.com:/home/bel/services/bin/dndex.new
|
||||
ssh bel@remote.blapointe.com bash -c 'true; md5sum ./services/bin/dndex*; while [ -e ./services/bin/dndex.new ]; do printf "."; sleep 3; done; md5sum ./services/bin/dndex*'
|
||||
rm $exec
|
||||
if [ -n "$BIG" ]; then
|
||||
big
|
||||
fi
|
||||
}
|
||||
|
||||
function gobuild() {
|
||||
GOOS=linux CGO_ENABLED=0 go build \
|
||||
-o $1 \
|
||||
-a \
|
||||
-installsuffix cgo \
|
||||
-ldflags "-s -w -X main.GitCommit=$(
|
||||
(
|
||||
git rev-list -1 HEAD
|
||||
if git diff | grep . > /dev/null; then
|
||||
echo "-dirty"
|
||||
fi
|
||||
) | tr -d '\n'
|
||||
)"
|
||||
}
|
||||
|
||||
function big() {
|
||||
pushd ./public/vue/dndex-ui
|
||||
git checkout master
|
||||
|
||||
Reference in New Issue
Block a user