feat: CI/CD Pipeline for Terraform Plan & Apply #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Mettre en place un pipeline CI/CD Gitea Actions pour automatiser le déploiement Terraform de l'infrastructure homelab.
Objectifs
1. Validation automatique (toutes les branches)
tflint --recursivepour la validation des bonnes pratiquesterraform fmt --recursivepour vérifier le formatage2. Workflow PR (Pull Requests)
terraform planexécuté automatiquement avant la reviewterraform applydéclenché après merge3. Workflow direct (push sur dev)
terraform plan+terraform applyautomatiqueContraintes techniques
Runner Gitea
Sécurité
PROXMOX_API_TOKEN- Token API ProxmoxTAILSCALE_AUTH_KEY- Clé d'authentification TailscaleAWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY- Credentials backend S3AWS_ENDPOINT_URL- Endpoint S3 (si custom)Structure du workflow
Tasks
.gitea/workflows/terraform.ymlRéférences
terraform/prod/