Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
code28 committed Jun 26, 2024
1 parent b1bf691 commit 2f1b361
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:

- name: Run deploy commands on remote server
run: |
echo "target dir: $TARGET_DIR"
ssh sshhost 'echo "target dir: $TARGET_DIR"'
ssh sshhost 'echo "target dir: ${{ TARGET_DIR }}"'
ssh sshhost 'cd "$TARGET_DIR" && pwd'
ssh sshhost 'cd $TARGET_DIR && git fetch && git checkout main && git pull && bash check_env.sh && docker compose up -d --no-deps --build backend'
ssh sshhost 'df . | awk "NR==2{if(\$4<=20*1024*1024) { system(\"docker system prune -f\") } else { system(\"echo \\\"Enough space left. No need to prune docker.\\\"\") } }"'
Expand Down

0 comments on commit 2f1b361

Please sign in to comment.