3ee135b020
- aggiunta runs-on: catthehacker-latest per aggirare bug #34986 - commento esplicativo sul motivo della modifica - garantita corretta esecuzione workflow_call su Gitea
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
# 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:
|
|
runs-on: catthehacker-latest # workaround Gitea bug #34986: runs-on non rispettato in workflow_call
|
|
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
|