44d9527c956d7bc7cc191f1bb29ebc76dcf2425b
Refactor the 'Detect changed images' step in the build-images workflow to improve robustness and debuggability. Changes include: - Pass `inputs.image` via an environment variable (`INPUT_IMAGE`) to avoid potential injection issues or syntax errors in shell scripts. - Add comprehensive `DEBUG` echo statements to trace the logic flow for both manual and automatic detection paths. - Use `printf` instead of `echo` for writing to `$GITHUB_OUTPUT` to ensure safer handling of string outputs. - Remove redundant comments to clean up the script block.
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%