Skip to content

Commit

Permalink
migrate db during deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TicClick committed Feb 11, 2021
1 parent 1c12700 commit 3d2bfdb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,8 @@ jobs:
[ -e '$PROJECT' ] && rm -r '$PROJECT'
git clone $REPOSITORY '$PROJECT' && cd '$PROJECT'
git fetch && git checkout '$GITHUB_REF'
./bin.sh setup && tmux new -d -s '$PROJECT' './bin.sh run --config ~/config.yaml'
(
./bin.sh setup &&
./bin.sh db --config ~/config.yaml upgrade head
) && tmux new -d -s '$PROJECT' './bin.sh run --config ~/config.yaml'
"

0 comments on commit 3d2bfdb

Please sign in to comment.