Terraform CI Image
Image Docker minimale basée sur Alpine pour les pipelines CI/CD Terraform.
Contenu
| Outil | Version |
|---|---|
| Base | Alpine 3.20 |
| Terraform | 1.5.7 |
| tflint | 0.54.0 |
| git, curl, bash, jq | latest |
Taille estimée : ~60-70 MB
Utilisation
# Dans un workflow Gitea Actions
jobs:
lint:
runs-on: docker
container:
image: gitea.arnodo.fr/damien/terraform-ci:latest
steps:
- uses: actions/checkout@v3
- run: |
cd terraform/prod
terraform init -backend=false
terraform validate
tflint
Build local
docker build -t terraform-ci:latest .
# Vérifier la taille
docker images terraform-ci:latest
Personnalisation
Les versions sont configurables via build args :
docker build \
--build-arg TERRAFORM_VERSION=1.6.0 \
--build-arg TFLINT_VERSION=0.55.0 \
-t terraform-ci:custom .