Skip to content

Commit

Permalink
fix: deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ONEPANTSU committed Mar 5, 2024
1 parent b238590 commit bf152b0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,4 @@ jobs:
- name: SSH into server and deploy
run: |
sshpass -p ${{ secrets.SERVER_PASSWORD }} ssh -tt -p ${{ secrets.SERVER_PORT }} ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_HOST }}
cd /home/ivan
cd teamapp ||
cd mkdir teamapp && cd teamapp && git clone https://github.com/SoftBananas/teamapp-backend.git && git pull
cd teamapp
touch .env.prod
echo "${{ secrets.ENV }}" > .env.prod
docker-compose -f docker-compose.yml down
docker-compose -f docker-compose.yml up -d
'cd /home/ivan && (cd teamapp || (cd mkdir teamapp && cd teamapp && git clone https://github.com/SoftBananas/teamapp-backend.git && git pull)) && cd teamapp && touch .env.prod && echo "${{ secrets.ENV }}" > .env.prod && docker-compose -f docker-compose.yml down && docker-compose -f docker-compose.yml up -d'

0 comments on commit bf152b0

Please sign in to comment.