CI e installatore: commenti degli script in inglese (#43)

La regola del progetto è «codice e commenti in inglese; interfaccia, documenti
e messaggi in italiano», e gli script di .gitea/ (script e flussi), di
installer/ e docker/entrypoint.sh avevano ancora i commenti in italiano
(decisione di Alberto del 29 novembre 2026). Cambiano solo i commenti: i
messaggi che una persona legge (echo, ::warning::, ::error::, nomi dei passi,
note della release) restano in italiano e nessun comando cambia. I programmi
awk e gli script finti delle prove erano già in inglese.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-29 12:03:13 +01:00
1 parent f48384b7d4
commit 009e7d6710
18 files changed
+496 -495

No files matched your search

+12 -12
View File
@@ -1,20 +1,20 @@
#!/usr/bin/env bash
# Artefatti della CI, al posto di actions/upload-artifact (un'azione JavaScript, che vuole Node): i file vanno nel
# registro dei pacchetti di Gitea, pacchetto generico febe-ci, una versione per esecuzione:
# CI artifacts, instead of actions/upload-artifact (a JavaScript action, which needs Node): the files go to the Gitea
# package registry, generic package febe-ci, one version per run:
#
# <versione>-ci.<numero> dal flusso verifica (come Febe-Setup-<versione>-ci.<numero>.exe)
# <versione>-rilascio.<numero> dal flusso rilascio
# <versione>-ci.<numero> from the verifica workflow (like Febe-Setup-<versione>-ci.<numero>.exe)
# <versione>-rilascio.<numero> from the rilascio workflow
#
# con <versione> da Directory.Build.props e <numero> il numero dell'esecuzione (NUMERO). Si scaricano dalla pagina del
# pacchetto su Gitea (proprietario ▸ Pacchetti ▸ febe-ci). La pulizia del lunedì (pulizia-docker.sh completa) toglie le
# versioni create più di 14 giorni prima, come faceva la scadenza degli artefatti.
# with <versione> from Directory.Build.props and <numero> the run number (NUMERO). They are downloaded from the package
# page on Gitea (owner ▸ Packages ▸ febe-ci). The Monday cleanup (full pulizia-docker.sh) removes the versions created
# more than 14 days earlier, as the artifact expiry used to do.
#
# .gitea/scripts/artefatti.sh verifica|rilascio <file>...
#
# Variabili: REGISTRY_TOKEN (token con «package: read and write», solo nell'intestazione di curl, mai stampato), GITEA_URL
# (l'indirizzo del server, gitea.server_url), PROPRIETARIO, NUMERO. Senza REGISTRY_TOKEN un avviso e nessun file
# caricato: il lavoro resta verde, come per l'immagine. Un file che manca o un rifiuto del registro fanno fallire il
# passo. Un file con lo stesso nome già caricato (un nuovo tentativo della stessa esecuzione) si sostituisce.
# Variables: REGISTRY_TOKEN (token with «package: read and write», only in the curl header, never printed), GITEA_URL
# (the server address, gitea.server_url), PROPRIETARIO, NUMERO. Without REGISTRY_TOKEN a warning and no file uploaded:
# the job stays green, as for the image. A missing file or a refusal by the registry fails the step. A file with the
# same name already uploaded (a new attempt of the same run) is replaced.
set -euo pipefail
flusso="${1:-}"
@@ -46,7 +46,7 @@ proprietario="${PROPRIETARIO:?Manca PROPRIETARIO.}"
base="${GITEA_URL:?Manca GITEA_URL.}"
base="${base%/}/api/packages/$proprietario/generic/febe-ci/$versione"
# Una chiamata al registro: il codice HTTP, 000 se Gitea non risponde. Il token sta solo nell'intestazione di curl.
# One call to the registry: the HTTP code, 000 if Gitea does not answer. The token is only in the curl header.
chiedi() {
local codice
codice=$(curl -sS --max-time 900 -H "Authorization: token $REGISTRY_TOKEN" -o /dev/null -w '%{http_code}' "$@") || true