Skip to content

Commit

Permalink
fix: deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ONEPANTSU authored Mar 7, 2024
1 parent 4f3f5bb commit a1a3bf7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ jobs:
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
echo "${{ secrets.SSH_PASSPHRASE }}" | ssh-agent bash -c "\
ssh-add ../private.key; ssh -o StrictHostKeyChecking=no -tt ${{ env.SERVER_USER }}@${{ env.SERVER_HOST }} '\
cd ${{ env.SERVER_PATH }} && docker-compose down || \
mkdir ${{ env.SERVER_PATH }} && cd ${{ env.SERVER_PATH }} && git clone https://github.com/SoftBananas/teamapp-backend.git;
cd ${{ env.SERVER_PATH }}/teamapp-backend && docker-compose down || \
mkdir ${{ env.SERVER_PATH }} && cd ${{ env.SERVER_PATH }} &&
git clone https://github.com/SoftBananas/teamapp-backend.git &&
cd teamapp-backend;
git pull;
cd teamapp-backend;
docker-compose up -d; \
Expand Down

0 comments on commit a1a3bf7

Please sign in to comment.