Update deploy.yml

This commit is contained in:
Souhail authored and GitHub committed 2024-11-22 19:12:58 +01:00
1 parent 00ddd623c8
commit 1b2b1da1a2
1 file changed
+3
+3
View File
@@ -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"