Skip to content

Commit

Permalink
Fix detach
Browse files Browse the repository at this point in the history
  • Loading branch information
zbyju committed May 9, 2024
1 parent 019aaa7 commit 2032690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
chmod 644 ~/.ssh/known_hosts
- name: connect and pull
run: ssh -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "cd ${{ secrets.WORK_DIR }} && git checkout ${{ secrets.MAIN_BRANCH }} && git pull && docker compose -d up --build && exit"
run: ssh -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "cd ${{ secrets.WORK_DIR }} && git checkout ${{ secrets.MAIN_BRANCH }} && git pull && docker compose up --detach --build && exit"

- name: cleanup
run: rm -rf ~/.ssh

0 comments on commit 2032690

Please sign in to comment.