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 a92624b commit 0ee1147
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ jobs:
sudo chmod 600 ../private.key
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 }}/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 && \
echo "$ENV" > .env.prod; \
git pull; \
cd teamapp-backend; \
docker-compose up -d; \
exit \
'"
ssh-add ../private.key && \
ssh -o StrictHostKeyChecking=no -tt ${{ env.SERVER_USER }}@${{ env.SERVER_HOST }} '\
cd ${{ env.SERVER_PATH }}/teamapp-backend && docker-compose down || \
{ mkdir -p ${{ env.SERVER_PATH }} && \
cd ${{ env.SERVER_PATH }} && \
git clone https://github.com/SoftBananas/teamapp-backend.git; } \
cd teamapp-backend && \
echo \"$ENV\" > .env.prod && \
git pull && \
docker-compose up -d); \
exit'"
shell: bash
env:
Expand Down

0 comments on commit 0ee1147

Please sign in to comment.