Skip to content

Commit

Permalink
das
Browse files Browse the repository at this point in the history
  • Loading branch information
amgno committed Sep 23, 2024
1 parent 4d6e807 commit 12e9008
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/main2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ jobs:
steps:
- name: Access to Server, Remove Docker Containers, Build Docker Image, Run Docker Container
run: |
sshpass -p ${{ secrets.PASSWORD }} ssh -o StrictHostKeyChecking=no ${{ secrets.USER_NAME }}@${{ secrets.SERVER_ADDRESS }} -p ${{ secrets.SSH_PORT }}
sshpass -p ${{ secrets.PASSWORD }} ssh -o StrictHostKeyChecking=no ${{ secrets.USER_NAME }}@${{ secrets.SERVER_ADDRESS }} -p ${{ secrets.SSH_PORT }}
echo ✅ SSH connection successful &&
ls &&
echo ✅ Listing directory &&
echo wow &&
cd ~/${{ secrets.APP_ROOT }}/ &&
cd /home/deployer/amgno.github.io &&
echo ✅ Pulling from GitHub &&
git pull &&
echo ✅ Starting docker &&
cd amgno.github.io &&
docker-compose down &&
docker-compose up -d &&
echo ✅ Done

0 comments on commit 12e9008

Please sign in to comment.