feat: changed deploy.yml

This commit is contained in:
filippo-ferrari 2024-09-06 21:14:28 +02:00
parent 159486cfb0
commit 1133e46f49

View file

@ -31,8 +31,9 @@ jobs:
run: scp -i ${{ secrets.SSH_KEY }} docker-compose.yml ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/home/${{ secrets.SSH_USER }}/munera run: scp -i ${{ secrets.SSH_KEY }} docker-compose.yml ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/home/${{ secrets.SSH_USER }}/munera
- name: Deploy on server - name: Deploy on server
run: ssh -i ${{ secrets.SSH_KEY }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} << 'EOF' run: |
ssh -i ${{ secrets.SSH_KEY }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} << 'EOF'
cd /home/${{ secrets.SSH_USER }}/munera cd /home/${{ secrets.SSH_USER }}/munera
docker-compose down docker-compose down
docker-compose up --build -d docker-compose up --build -d
EOF EOF