3 Commits

Author SHA1 Message Date
lucasdpt
0443034cf1 feat: switch to custom download/upload actions
All checks were successful
semantic-release / release (push) Successful in 34s
2026-04-05 00:17:47 +02:00
29d51c063c chore: remove useless files
All checks were successful
semantic-release / release (push) Successful in 26s
2026-03-30 17:19:42 +02:00
27e8499c60 feat: handle .terraform cache
All checks were successful
semantic-release / release (push) Successful in 30s
2026-03-30 17:18:52 +02:00
2 changed files with 21 additions and 2 deletions

View File

@@ -13,13 +13,20 @@ runs:
- name: Setup Terraform
uses: hashicorp/setup-terraform@5e8dbf3c6d9deaf4193ca7a8fb23f2ac83bb6c85 # v4.0.0
- name: Cache Terraform providers
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: ${{ inputs.working-directory }}/.terraform
key: terraform-${{ hashFiles(format('{0}/.terraform.lock.hcl', inputs.working-directory)) }}
restore-keys: terraform-
- name: Terraform Init
shell: bash
working-directory: ${{ inputs.working-directory }}
run: terraform init
- name: Download plan artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
uses: https://gitea.ldpt.fr/actions/gitea-download-artifact@main
with:
name: terraform-plan
path: ${{ inputs.working-directory }}

View File

@@ -13,18 +13,30 @@ runs:
- name: Setup Terraform
uses: hashicorp/setup-terraform@5e8dbf3c6d9deaf4193ca7a8fb23f2ac83bb6c85 # v4.0.0
- name: Cache Terraform providers
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: ${{ inputs.working-directory }}/.terraform
key: terraform-${{ hashFiles(format('{0}/.terraform.lock.hcl', inputs.working-directory)) }}
restore-keys: terraform-
- name: Terraform Init
shell: bash
working-directory: ${{ inputs.working-directory }}
run: terraform init
- name: Terraform Validate
shell: bash
working-directory: ${{ inputs.working-directory }}
run: terraform validate
- name: Terraform Plan
shell: bash
working-directory: ${{ inputs.working-directory }}
run: terraform plan -out=tfplan
- name: Upload plan artifact
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
uses: https://gitea.ldpt.fr/actions/gitea-upload-artifact@main
with:
name: terraform-plan
path: ${{ inputs.working-directory }}/tfplan