This commit is contained in:
@@ -30,8 +30,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy to server
|
- name: Deploy to server
|
||||||
run: |
|
run: |
|
||||||
scp build.tar.gz deploy@aranroig.deploy:/tmp/
|
scp -i ${{ secrets.DEPLOY_KEY_LOCATION }} build.tar.gz deploy@${{ secrets.DEPLOY_HOST }}:/tmp/
|
||||||
ssh deploy@aranroig.deploy << 'EOF'
|
ssh -i ${{ secrets.DEPLOY_KEY_LOCATION }} deploy@{{ secrets.DEPLOY_HOST }} << 'EOF'
|
||||||
rm -rf /var/www/app/.output
|
rm -rf /var/www/app/.output
|
||||||
tar -xzf /tmp/build.tar.gz -C /var/www/app
|
tar -xzf /tmp/build.tar.gz -C /var/www/app
|
||||||
sudo systemctl restart app
|
sudo systemctl restart app
|
||||||
|
|||||||
Reference in New Issue
Block a user