25 lines
510 B
YAML
25 lines
510 B
YAML
|
---
|
||
|
when:
|
||
|
- event: [pull_request, tag]
|
||
|
- event: [push, manual]
|
||
|
branch:
|
||
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||
|
|
||
|
steps:
|
||
|
- name: git-spaces
|
||
|
image: quay.io/thegeeklab/alpine-tools
|
||
|
commands:
|
||
|
- git diff-tree --check $(git hash-object -t tree /dev/null) HEAD
|
||
|
|
||
|
- name: tflint
|
||
|
image: ghcr.io/terraform-linters/tflint
|
||
|
commands:
|
||
|
- tflint --color
|
||
|
|
||
|
- name: terraform
|
||
|
image: docker.io/jmccann/drone-terraform:8
|
||
|
settings:
|
||
|
actions:
|
||
|
- validate
|
||
|
tf_version: 1.5.0
|