27 lines
No EOL
684 B
YAML
27 lines
No EOL
684 B
YAML
name: Deploy HTML
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
# El job corre dentro de un contenedor Ubuntu con el htdocs de Apache montado.
|
|
# El runner tiene autorizado este mount vía valid_volumes en config.yaml.
|
|
# Todo lo que el script copie a /output aparecerá inmediatamente en https://portaljack.freeddns.org/
|
|
container:
|
|
image: catthehacker/ubuntu:act-22.04
|
|
volumes:
|
|
- /srv/devops/data/apache/htdocs:/output
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Convertir y desplegar
|
|
shell: bash
|
|
run: |
|
|
chmod +x convertir.sh
|
|
./convertir.sh |