This commit is contained in:
parent
8e7b684ee3
commit
85b7b43824
21
.github/workflows/deploy.yml
vendored
21
.github/workflows/deploy.yml
vendored
@ -1,16 +1,15 @@
|
|||||||
name: Deploy Automático
|
name: Deploy Final SSH
|
||||||
on:
|
on: [push]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main # O la rama que uses
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest # <--- CAMBIO CLAVE: Usa 'host' o 'self-hosted'
|
runs-on: ubuntu-latest # Esto usa el runner general de Gitea, no el tuyo.
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout código
|
- name: Ejecutar comandos en EC2
|
||||||
uses: actions/checkout@v3
|
uses: https://github.com/appleboy/ssh-action@master
|
||||||
|
with:
|
||||||
- name: Ejecutar Script de Despliegue
|
host: ${{ secrets.SSH_HOST }}
|
||||||
run: |
|
username: ${{ secrets.SSH_USER }}
|
||||||
|
key: ${{ secrets.SSH_KEY }}
|
||||||
|
script: |
|
||||||
sudo /usr/bin/bash /opt/deploy.sh
|
sudo /usr/bin/bash /opt/deploy.sh
|
||||||
Loading…
Reference in New Issue
Block a user