📦 build(ci): aggiungi workflow CI, release e manutenzione python
- 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
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# Copia in: .gitea/workflows/release.yml
|
||||
# Trigger: git tag v* → build Docker + crea release Gitea
|
||||
#
|
||||
# NOTA: i job girano in parallelo (non sequenziali con needs).
|
||||
# Gitea bug #31900: needs + workflow_call + checkout causa errori di autenticazione.
|
||||
#
|
||||
# Prerequisiti:
|
||||
# - Dockerfile presente nella root del progetto
|
||||
# - pyproject.toml con [project] name e version
|
||||
# - Secrets: G_USER (docker login), NPM_TOKEN (usato come password registry)
|
||||
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
docker-release:
|
||||
uses: https://gitea.com/Punga78/shared-actions/.gitea/workflows/python-docker-release.yml@v1
|
||||
secrets: inherit
|
||||
with:
|
||||
runner: catthehacker-latest # runner con Docker pre-installato
|
||||
# python-version: '3.11' # opzionale
|
||||
# install-extras: 'dev' # opzionale
|
||||
|
||||
auto-release:
|
||||
uses: https://gitea.com/Punga78/shared-actions/.gitea/workflows/python-auto-release.yml@v1
|
||||
secrets: inherit
|
||||
Reference in New Issue
Block a user