Skip to content

Commit

Permalink
test deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
taulant.disha authored and taulant.disha committed May 16, 2024
1 parent 68d95cf commit ede056a
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 @@ -48,18 +48,20 @@ jobs:
with:
host: ${{ secrets.SSH_SERVER_IP }}
username: ${{ secrets.SSH_SERVER_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
key: ${{ secrets.FRONTEND_SSH_KEY }}
script: |
#!/usr/bin/env bash
echo "Listing directory contents"
ls -l
cd aut-integrate
sudo git checkout main;
sudo git pull origin main;
sudo docker-compose -f docker-compose.yml down
sudo docker rmi $(docker images -f "dangling=true" -q)
sudo docker-compose -f docker-compose.yml pull
sudo docker-compose up -d --build
sudo docker-compose up -d
exit 0;

0 comments on commit ede056a

Please sign in to comment.