musicube/deploy.sh

17 lines
252 B
Bash
Raw Permalink Normal View History

2021-09-25 21:28:04 +00:00
#!/bin/bash
BRANCH="$1"
# Exit immediately if a command fails
set -e
# Log every command
set -x
git status
git fetch
git checkout "$BRANCH"
git pull --ff-only
make build
docker stop musicube || true
docker run --rm --detach --name musicube musicube