Files
homelab-terraform/.drone.yml
Tim Unkrig 37aa8d8246
Some checks failed
continuous-integration/drone Build is failing
added secrets to drone
2023-10-27 11:32:05 +02:00

30 lines
684 B
YAML

---
kind: pipeline
name: default
type: docker
trigger:
branch:
- main
steps:
- 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 init
- terraform -chdir=infrastructure plan
environment:
tf_virtual_environment_endpoint:
from_secret: virtual_environment_endpoint
tf_virtual_environment_api_token:
from_secret: virtual_environment_api_token
# when:
# event:
# - pull_request