musicube/deploy.sh

17 lines
252 B
Bash
Executable File

#!/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