3458b1c8a0b9c66cf6bdb2dcb948bf303f38b5b8
Updated the image detection step in the `.gitea/workflows/build-images.yml` workflow to better handle manual inputs and automatic change detection. Changes: - Reorganized the logic to handle manual inputs first; if a manual input is present, it validates the image, sets the output matrix immediately, and exits, bypassing git diff checks. - Added explicit error handling and output setting for invalid or empty manual inputs to prevent workflow failure confusion. - Grouped the Git diff detection logic into a distinct block that runs only if no manual input is provided. - Added a debug echo statement to the build job to verify the current matrix image being built.
Docker Images
Dépôt centralisé pour les images Docker custom, buildées avec Buildkit et hébergées sur le registry Gitea.
Structure
docker-images/
├── .gitea/workflows/
│ └── build-images.yml # Pipeline Buildkit
├── images/
│ ├── terraform-ci/ # Image Terraform + tflint
│ │ ├── Dockerfile
│ │ └── README.md
│ └── <future-image>/
└── README.md
Fonctionnement
Le workflow détecte automatiquement quelles images ont changé et ne rebuild que celles-ci.
Build automatique
Push sur main avec des modifications dans images/ → build et push automatique.
Build manuel
Utiliser "Run workflow" dans l'interface Gitea Actions et spécifier le nom de l'image.
Images disponibles
| Image | Description | Tags |
|---|---|---|
terraform-ci |
Terraform 1.5.7 + tflint | latest, <commit-sha> |
Utilisation
# Pull depuis le registry Gitea
docker pull gitea.arnodo.fr/damien/terraform-ci:latest
Configuration requise
Secret à configurer
Dans les paramètres du repo → Secrets → Actions :
REGISTRY_TOKEN: Token Gitea avec les droitswrite:package
Génération du token
- Gitea → Settings → Applications → Access Tokens
- Créer un token avec le scope
write:package - Ajouter comme secret
REGISTRY_TOKEN
Description
Languages
Dockerfile
100%