feat: configurar portal y CloudWatch con Ansible y CI en Forgejo #2
|
|
@ -4,7 +4,7 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [develop]
|
branches: [develop]
|
||||||
push:
|
push:
|
||||||
branches: [develop, 'feature/**', 'bugfix/**', 'chore/**']
|
branches: [develop]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -18,14 +18,12 @@ jobs:
|
||||||
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
github-server-url: https://git.bryan-bano.com
|
github-server-url: https://git.bryan-bano.com
|
||||||
- uses: https://github.com/actions/setup-python@v5
|
- uses: https://github.com/astral-sh/setup-uv@v6
|
||||||
with:
|
|
||||||
python-version: '3.12'
|
|
||||||
- name: Validar rama, issue, milestone, etiquetas y commits
|
- name: Validar rama, issue, milestone, etiquetas y commits
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GITHUB_SERVER_URL: https://git.bryan-bano.com
|
GITHUB_SERVER_URL: https://git.bryan-bano.com
|
||||||
run: python scripts/check_gitflow.py
|
run: uv run --no-project --python 3.12 python scripts/check_gitflow.py
|
||||||
|
|
||||||
ansible:
|
ansible:
|
||||||
name: ansible
|
name: ansible
|
||||||
|
|
@ -36,12 +34,13 @@ jobs:
|
||||||
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
github-server-url: https://git.bryan-bano.com
|
github-server-url: https://git.bryan-bano.com
|
||||||
- uses: https://github.com/actions/setup-python@v5
|
- uses: https://github.com/astral-sh/setup-uv@v6
|
||||||
with:
|
|
||||||
python-version: '3.12'
|
|
||||||
- name: Instalar dependencias y coleccion AWS
|
- name: Instalar dependencias y coleccion AWS
|
||||||
run: |
|
run: |
|
||||||
python -m pip install -r ansible/requirements.txt
|
uv venv --python 3.12 .venv
|
||||||
|
uv pip install --python .venv/bin/python -r ansible/requirements.txt
|
||||||
|
echo "$PWD/.venv/bin" >> "$GITHUB_PATH"
|
||||||
|
export PATH="$PWD/.venv/bin:$PATH"
|
||||||
ansible-galaxy collection install -r ansible/requirements.yml
|
ansible-galaxy collection install -r ansible/requirements.yml
|
||||||
- name: Validar sintaxis y buenas practicas
|
- name: Validar sintaxis y buenas practicas
|
||||||
working-directory: ansible
|
working-directory: ansible
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ El workflow [security.yml](../.forgejo/workflows/security.yml) usa un runner `ub
|
||||||
| `terraform` | Formato, inicializacion sin backend y validacion, sin plan/apply ni credenciales AWS. |
|
| `terraform` | Formato, inicializacion sin backend y validacion, sin plan/apply ni credenciales AWS. |
|
||||||
| `secretos` | Gitleaks con reglas oficiales y exclusiones locales sobre commits nuevos, con salida redactada. |
|
| `secretos` | Gitleaks con reglas oficiales y exclusiones locales sobre commits nuevos, con salida redactada. |
|
||||||
|
|
||||||
Los PR se validan sobre el SHA de origen. Los pushes permiten revisar codigo antes del PR; la comprobacion de metadatos requiere el PR. No hay filtros por archivos que dejen checks obligatorios sin ejecutar.
|
Los PR se validan sobre el SHA de origen. Los pushes a `develop` vuelven a comprobar el codigo integrado; la comprobacion de metadatos requiere el PR. No hay filtros por archivos que dejen checks obligatorios sin ejecutar.
|
||||||
|
|
||||||
## Configuracion
|
## Configuracion
|
||||||
|
|
||||||
|
|
@ -38,3 +38,5 @@ Los contextos obligatorios configurados son `Validacion / gitflow (pull_request)
|
||||||
En Forgejo 1.21, editar etiquetas o milestone puede no iniciar otra ejecucion. Completa los metadatos al crear el PR o relanza el workflow tras editarlos. No se publican comentarios automaticos ni se almacenan tokens personales o credenciales AWS en el YAML; el token efimero solo lee metadatos.
|
En Forgejo 1.21, editar etiquetas o milestone puede no iniciar otra ejecucion. Completa los metadatos al crear el PR o relanza el workflow tras editarlos. No se publican comentarios automaticos ni se almacenan tokens personales o credenciales AWS en el YAML; el token efimero solo lee metadatos.
|
||||||
|
|
||||||
El runner anuncia internamente `http://forgejo:3000`, que no resuelve desde los contenedores de jobs. El checkout y las consultas de metadatos usan explicitamente `https://git.bryan-bano.com`; el runner debe poder alcanzar esa URL. No se desactiva la verificacion TLS.
|
El runner anuncia internamente `http://forgejo:3000`, que no resuelve desde los contenedores de jobs. El checkout y las consultas de metadatos usan explicitamente `https://git.bryan-bano.com`; el runner debe poder alcanzar esa URL. No se desactiva la verificacion TLS.
|
||||||
|
|
||||||
|
El runner disponible es ARM64 con imagen `node:22-bookworm`. Se usa `setup-uv` y un entorno Python 3.12 aislado para no depender de las distribuciones Ubuntu admitidas por `setup-python`. Gitleaks selecciona el archivo x64/ARM64 segun la arquitectura real.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue