chore(deploy): switch publisher to Bash

This commit is contained in:
2026-11-23 16:22:43 +01:00
parent 18c1010f98
commit e46108fecc
4 changed files with 168 additions and 118 deletions

View File

@ -27,14 +27,14 @@ Le fichier `docker-compose.prod.yml` consomme quatre images publiées sous `gite
### Construction et publication
Depuis la racine, avec Python 3, Git et Docker/BuildKit disponibles :
Depuis la racine, avec Bash, Git et Docker/BuildKit disponibles :
```sh
python3 scripts/publish-images.py --dry-run
python3 scripts/publish-images.py
python3 scripts/publish-images.py --tag v1.2.0 --dry-run --push
./scripts/publish-images.sh --dry-run
./scripts/publish-images.sh
./scripts/publish-images.sh --tag v1.2.0 --dry-run --push
# Après authentification séparée : publication explicite
python3 scripts/publish-images.py --push
./scripts/publish-images.sh --push
```
Sans `--tag`, le SHA Git HEAD complet est utilisé, jamais `latest`. Utiliser un checkout propre validé par Git : le script construit les fichiers présents, et ne vérifie pas leur propreté. Les quatre builds doivent réussir avant le premier push. Un échec de push peut laisser une publication partielle : ne déployer qu’après succès complet. `--dry-run` lit seulement HEAD et affiche le plan, sans appel Docker, build, téléchargement ni push. Les labels OCI source/revision/version identifient Tradarr et, pour Laya, son dépôt amont et son commit épinglé. Le tag commun reste la version de livraison Tradarr.