mirror of
https://github.com/UiO-Gaming/mustaboard.git
synced 2026-11-05 13:56:52 +01:00
Update deploy.yml
This commit is contained in:
1 parent
00ddd623c8
commit
1b2b1da1a2
1 file changed
+3
@@ -17,6 +17,9 @@ jobs:
|
||||
chmod 600 ~/.ssh/id_ed25519 # This should be redundant but seems to do the trick.
|
||||
ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts
|
||||
|
||||
- name: Correct file permissions
|
||||
run: chmod -R u+w .
|
||||
|
||||
- name: Connect, pull, build and deploy
|
||||
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "cd ${{ secrets.WORK_DIR }} && git checkout ${{ secrets.MAIN_BRANCH }} && git pull && docker compose down && docker compose up -d --build && exit"
|
||||
|
||||
|
||||
Reference in new issue
Block a user