Files
freebox_cert_update/.gitea/workflows/terraform_plan.yaml
Artémis Michelot e530ce091e
Some checks failed
Docker build and push / terraform (push) Failing after 5s
feat: Dockerize + workflow WIP
Signed-off-by: Artémis Michelot <artemis.michelot@gmail.com>
2025-09-26 11:04:35 +02:00

38 lines
1.1 KiB
YAML

name: Terraform plan
on:
push:
branches-ignore:
- "main"
env:
TF_HTTP_USERNAME: ${{ secrets.TF_HTTP_USERNAME }}
TF_HTTP_PASSWORD: ${{ secrets.TF_HTTP_PASSWORD }}
OVH_ENDPOINT: ${{ vars.OVH_ENDPOINT }}
OVH_APPLICATION_KEY: ${{ secrets.OVH_APPLICATION_KEY }}
OVH_APPLICATION_SECRET: ${{ secrets.OVH_APPLICATION_SECRET }}
OVH_CONSUMER_KEY: ${{ secrets.OVH_CONSUMER_KEY }}
jobs:
terraform:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download latest terraform version
run: |
TFV=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | jq -r -M '.current_version')
curl -JOL "https://releases.hashicorp.com/terraform/${TFV}/terraform_${TFV}_linux_amd64.zip"
unzip "terraform_${TFV}_linux_amd64.zip"
cp terraform /usr/bin/
chmod +x /usr/bin/terraform
- name: Terraform Init & Format
run: |
terraform init
terraform fmt -check -recursive
- name: Terraform Plan
run: terraform plan -out=tfplan