This commit is contained in:
parent
8e7b684ee3
commit
85b7b43824
23
.github/workflows/deploy.yml
vendored
23
.github/workflows/deploy.yml
vendored
@ -1,16 +1,15 @@
|
||||
name: Deploy Automático
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main # O la rama que uses
|
||||
name: Deploy Final SSH
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
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:
|
||||
- name: Checkout código
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Ejecutar Script de Despliegue
|
||||
run: |
|
||||
sudo /usr/bin/bash /opt/deploy.sh
|
||||
- name: Ejecutar comandos en EC2
|
||||
uses: https://github.com/appleboy/ssh-action@master
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
username: ${{ secrets.SSH_USER }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
script: |
|
||||
sudo /usr/bin/bash /opt/deploy.sh
|
||||
Loading…
Reference in New Issue
Block a user