c16b182607
- aggiunto esempio workflow CI per python con quality gates
- aggiunto esempio workflow manutenzione con branch cleanup, audit sicurezza e check pacchetti obsoleti
- aggiunto esempio workflow release per build docker e auto-release gitea
📦 build(shared-actions): aggiungi shared-actions python per CI/CD
- aggiunto python-quality-gates.yml per lint, format, type check e test
- aggiunto python-auto-release.yml per changelog e rilascio automatico
- aggiunto python-docker-release.yml per build e push immagini docker
- aggiunto python-dependency-check.yml per audit sicurezza dipendenze
- aggiunto python-dependency-outdated.yml per verifica pacchetti obsoleti
43 lines
1.5 KiB
YAML
43 lines
1.5 KiB
YAML
# Copia in: .gitea/workflows/maintenance.yml
|
|
# Trigger:
|
|
# - PR merged → cleanup branch sorgente
|
|
# - Ogni lunedì 08:00 → security audit vulnerabilità (settimanale)
|
|
# - Ogni 1° del mese → controllo pacchetti obsoleti (mensile)
|
|
# - Manuale → workflow_dispatch (esegue tutti i job di manutenzione)
|
|
|
|
name: Maintenance
|
|
|
|
on:
|
|
pull_request:
|
|
types: [closed]
|
|
schedule:
|
|
- cron: '0 8 * * 1' # ogni lunedì alle 08:00 → security audit
|
|
- cron: '0 8 1 * *' # ogni 1° del mese alle 08:00 → outdated check
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
branch-cleanup:
|
|
if: gitea.event_name == 'pull_request' && gitea.event.pull_request.merged == true
|
|
uses: https://gitea.com/Punga78/shared-actions/.gitea/workflows/branch-cleanup.yml@v1
|
|
secrets: inherit
|
|
|
|
dependency-audit:
|
|
if: >
|
|
gitea.event_name == 'workflow_dispatch' ||
|
|
(gitea.event_name == 'schedule' && gitea.event.schedule == '0 8 * * 1')
|
|
uses: https://gitea.com/Punga78/shared-actions/.gitea/workflows/python-dependency-check.yml@v1
|
|
secrets: inherit
|
|
# with:
|
|
# python-version: '3.11'
|
|
# install-extras: 'dev'
|
|
|
|
dependency-outdated:
|
|
if: >
|
|
gitea.event_name == 'workflow_dispatch' ||
|
|
(gitea.event_name == 'schedule' && gitea.event.schedule == '0 8 1 * *')
|
|
uses: https://gitea.com/Punga78/shared-actions/.gitea/workflows/python-dependency-outdated.yml@v1
|
|
secrets: inherit
|
|
# with:
|
|
# python-version: '3.11'
|
|
# install-extras: 'dev'
|