This Drone plugin uses the Terraform CLI and makes it compatible with Drone.
- name: Step name
image: 2martens/terraform-drone-plugin
settings:
api_token: <api_token>
path: <path relative to Git repo>
args: <args>
kind: pipeline
name: default
type: docker
platform:
os: linux
arch: arm64
clone:
skip_verify: true
steps:
- name: run plan
pull: always
image: 2martens/terraform-drone-plugin
settings:
api_token:
from_secret: api_token
path: terraform
args: plan