Skip to content

Commit

Permalink
Fix pipeline failing when recreating containers
Browse files Browse the repository at this point in the history
  • Loading branch information
zbyju committed Jun 18, 2024
1 parent f261994 commit 3b01a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,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 up --detach --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 --force-recreate && exit"

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

0 comments on commit 3b01a3b

Please sign in to comment.