darnodo 95e251f2f2 ci(workflows): rename output variable matrix to image_list
The variable name `matrix` in the `detect-changes` job output was ambiguous and potentially confusing, as `matrix` is a reserved keyword in Gitea/GitHub Actions syntax for defining job strategies.

This change renames the output variable to `image_list` to better reflect its content (a JSON array of image names) and avoid naming conflicts or confusion with the actual `strategy.matrix` configuration.

Changes:
- Renamed output `matrix` to `image_list` in `detect-changes` job.
- Updated all shell script references in the change detection logic.
- Updated the consumer job `build-push-images` to use `needs.detect-changes.outputs.image_list`.
2025-12-07 21:06:39 +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%