From cd3692e1d0cab3e00e6b48d31b0a56b1323b04bb Mon Sep 17 00:00:00 2001 From: Souhail <101131126+centauridesigns@users.noreply.github.com> Date: Fri, 22 Nov 2024 19:15:06 +0100 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d98e68b..92e4c0b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,7 +18,7 @@ jobs: ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts - name: Correct file permissions - run: chmod -R u+w . + 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"