forked from taskcluster/taskcluster-infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.taskcluster.yml
30 lines (30 loc) · 999 Bytes
/
.taskcluster.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
version: 0
allowPullRequests: public
metadata:
name: "Taskcluster Terraform Tests"
description: "Simple checks for validity of terraform module"
owner: "{{ event.head.user.email }}"
source: "{{ event.head.repo.url }}"
tasks:
- provisionerId: "{{ taskcluster.docker.provisionerId }}"
workerType: "{{ taskcluster.docker.workerType }}"
extra:
github:
env: true
events:
- pull_request.opened
- pull_request.synchronize
- pull_request.reopened
- push
payload:
maxRunTime: 3600
image: "jonatanblue/gitlab-ci-terraform:latest"
command:
- "/bin/bash"
- "-lc"
- "git clone {{event.head.repo.url}} repo && cd repo && git checkout {{event.head.sha}} && terraform fmt -check"
metadata:
name: "Taskcluster Terraform Tests"
description: "Simple checks for validity of terraform module"
owner: "{{ event.head.user.email }}"
source: "{{ event.head.repo.url }}"