feat: add terraform actions
All checks were successful
semantic-release / release (push) Successful in 55s

This commit is contained in:
2026-03-30 16:35:42 +02:00
commit ff142cccd8
4 changed files with 89 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
name: Terraform Apply
description: Download the "terraform-plan" artifact and apply it
inputs:
working-directory:
description: Directory containing the Terraform configuration
required: false
default: "."
runs:
using: composite
steps:
- name: Setup Terraform
uses: hashicorp/setup-terraform@5e8dbf3c6d9deaf4193ca7a8fb23f2ac83bb6c85 # v4.0.0
- 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
with:
name: terraform-plan
path: ${{ inputs.working-directory }}
- name: Terraform Apply
shell: bash
working-directory: ${{ inputs.working-directory }}
run: terraform apply -auto-approve tfplan