Files
docker-images/images/terraform-ci
Damien Arnodo 6f4b8a203f
Some checks failed
Build and Push Docker Images / detect-changes (push) Failing after 6s
Build and Push Docker Images / build (push) Has been skipped
docs: update README for alpine-based image
2025-12-07 17:53:06 +00:00
..

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 .