tusd/.scripts/deploy_current.sh

19 lines
368 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
set -e
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${__dir}/build_funcs.sh"
# Compile release archive for master.tus.io server
compile linux amd64
maketar linux amd64
cp ./tusd_linux_amd64.tar.gz "${__dir}/../.infra/files/"
pushd "${__dir}/../.infra"
yarn || npm install
./node_modules/.bin/frey --force-yes deploy
popd