diff --git a/.github/workflows/main2.yml b/.github/workflows/main2.yml index 19f1f62..b0c0303 100644 --- a/.github/workflows/main2.yml +++ b/.github/workflows/main2.yml @@ -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