pipeline {
  agent none

  options {
    timestamps()
    ansiColor('xterm')
  }

  stages {
    stage('lint') {
      agent { docker { image 'hashicorp/terraform:light' } }
      steps {
        sh 'terraform fmt -check=true'
      }
    }
  }
}
