feat/cicd-terraform
dev
Mise en place d'un pipeline CI/CD Gitea Actions pour automatiser le déploiement Terraform.
.gitea/workflows/terraform.yml
gitea.arnodo.fr/damien/terraform-ci:latest
terraform fmt -check
tflint
terraform validate
terraform plan
terraform apply
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
PROXMOX_URL
PROXMOX_API_TOKEN
TAILSCALE_AUTH_KEY
GIT_TOKEN
Cette PR va déclencher les jobs validate et plan. Le job apply se déclenchera après le merge sur dev.
validate
plan
apply
Closes #3
Implements automated Terraform pipeline with: - Validation: fmt check, tflint, terraform validate - Plan: on all PRs and pushes, with PR comments - Apply: automatic on push to dev (when changes detected) Runner: self-hosted (Docker) with Tailscale access to PVE01 Backend: Scaleway S3 Object Storage Closes #3
- Use gitea.arnodo.fr/damien/terraform-ci:latest (Terraform 1.5.7 + TFLint) - Remove setup-terraform and setup-tflint actions (already in image) - Replace actions/github-script with curl + Gitea API for PR comments - Use gitea.* context variables instead of github.* - Fix plan exit code handling (0=no changes, 2=changes, 1=error) Refs #3
GITEA_TOKEN is a reserved name in Gitea Actions Refs #3
No dependencies set.
The note is not visible to the blocked user.
Description
Mise en place d'un pipeline CI/CD Gitea Actions pour automatiser le déploiement Terraform.
Changements
.gitea/workflows/terraform.ymlgitea.arnodo.fr/damien/terraform-ci:latest(Terraform 1.5.7 + TFLint)Pipeline
terraform fmt -check,tflint,terraform validateterraform plan+ commentaire automatique sur la PRdevuniquementterraform apply(si changements détectés)Secrets configurés
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYPROXMOX_URLPROXMOX_API_TOKENTAILSCALE_AUTH_KEYGIT_TOKENTest
Cette PR va déclencher les jobs
validateetplan. Le jobapplyse déclenchera après le merge surdev.Closes #3