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
cd3692e1d0
commit
0864de6609
1 file changed
+1
-4
@@ -17,11 +17,8 @@ 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: sudo chown -R $USER:$USER .
|
||||
|
||||
- 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"
|
||||
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "cd ${{ secrets.WORK_DIR }} && sudo chown -R $USER:$USER . && git checkout ${{ secrets.MAIN_BRANCH }} && git pull && docker compose down && docker compose up -d --build && exit"
|
||||
|
||||
- name: Clean up
|
||||
run: rm -rf ~/.ssh
|
||||
Reference in new issue
Block a user