Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chronis10 committed May 13, 2024
2 parents 5c160b5 + b5f2c68 commit 270bad0
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,19 @@ jobs:
- name: SSH and Deploy
run: |
ssh -i ~/.ssh/id_rsa ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }}
cd /home/christoclis/fossbot-platform
git pull origin master
sudo docker compose -f docker-compose-production.yml down
sudo docker compose -f docker-compose-production.yml build
sudo docker compose -f docker-compose-production.yml up -d
ssh -i ~/.ssh/id_rsa ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} << EOF
cd /home/christoclis/fossbot-platform
git pull origin master
sudo docker compose -f docker-compose-production.yml down
sudo docker rmi -f fsbt-front
sudo docker rmi -f fsbt-sim
sudo docker rmi -f fsbt-back
cd /home/christoclis/fossbot-platform/front-end
sudo docker build --no-cache -t fsbt-front .
cd /home/christoclis/fossbot-platform/back-end
sudo docker build --no-cache -t fsbt-back .
cd /home/christoclis/fossbot-platform/simulator
sudo docker build --no-cache -t fsbt-sim .
cd /home/christoclis/fossbot-platform
sudo docker compose -f docker-compose-production.yml up -d
EOF

0 comments on commit 270bad0

Please sign in to comment.