Regresar al proceso original
Variables
---
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
This commit is contained in:
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
@@ -3,7 +3,7 @@ name: Deploy Pruebas
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- Pruebas
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@@ -17,10 +17,10 @@ jobs:
|
|||||||
- name: Deploy to Server
|
- name: Deploy to Server
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: ${{ PAAD_SERVER_IP }}
|
host: ${{ secrets.SERVER_IP }}
|
||||||
username: ${{ PAAD_SERVER_USER }}
|
username: ${{ secrets.SERVER_USER }}
|
||||||
key: ${{ PAAD_SSH_PRIVATE_KEY }}
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
script: |
|
script: |
|
||||||
cd /usr/share/nginx/html/paad/
|
cd /usr/share/nginx/html/paad/
|
||||||
git fetch --all
|
git fetch --all
|
||||||
git reset --hard origin/Pruebas
|
git reset --hard origin/Pruebas
|
||||||
Reference in New Issue
Block a user