Files
homelab-terraform/.drone.yml
Tim Unkrig 0438af9f6a
All checks were successful
continuous-integration/drone/push Build is passing
tried seperate steps
2023-10-27 12:46:34 +02:00

34 lines
767 B
YAML

---
kind: pipeline
name: default
type: docker
trigger:
branch:
- main
steps:
- name: terraform init
image: hashicorp/terraform:1.5
commands:
- terraform -chdir=infrastructure init
- name: Terraform syntax check
image: hashicorp/terraform:1.5
commands:
- terraform -chdir=infrastructure fmt -diff -check
# when:
# event:
# - pull_request
- name: terraform plan
image: hashicorp/terraform:1.5
commands:
- terraform -chdir=infrastructure plan
environment:
TF_VAR_virtual_environment_endpoint:
from_secret: virtual_environment_endpoint
TF_VAR_virtual_environment_api_token:
from_secret: virtual_environment_api_token
# when:
# event:
# - pull_request