darnodo 3458b1c8a0 ci: refine image detection logic in build workflow
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.
2025-12-07 20:58:54 +01:00
2025-12-07 17:18:14 +00:00

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 droits write:package

Génération du token

  1. Gitea → Settings → Applications → Access Tokens
  2. Créer un token avec le scope write:package
  3. Ajouter comme secret REGISTRY_TOKEN
Description
Custom Docker images built with Buildkit and hosted on Gitea Container Registry
Readme 129 KiB
Languages
Dockerfile 100%