forked from jenkins-x/terraform-google-jx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjenkins-x.yml
executable file
·37 lines (37 loc) · 1.03 KB
/
jenkins-x.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
31
32
33
34
35
36
37
buildPack: none
pipelineConfig:
pipelines:
pullRequest:
pipeline:
agent:
image: gcr.io/jenkinsxio/builder-terraform:0.0.0-SNAPSHOT-PR-1389-1
stages:
- name: ci
environment:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /secret/sa/ci_bot.json
options:
volumes:
- name: sa
secret:
secretName: terraform-secret
items:
- key: terraform_google_jx_sa
path: sa/ci_bot.json
containerOptions:
volumeMounts:
- mountPath: /secret
name: sa
steps:
- name: terraform-lint
command: make
args:
- lint
- name: terraform-sec
command: tfsec
image: liamg/tfsec:v0.28.1
args:
- /workspace/source
- --soft-fail
- name: terraform-apply-and-test
command: ./scripts/ci.sh