-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
59 lines (51 loc) · 1.06 KB
/
.drone.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
kind: secret
name: <redacted>
get:
path: <redacted>
name: dev
---
kind: secret
name: <redacted>
get:
path: <redacted>
name: prd
---
kind: pipeline
name: default
workspace:
path: /drone/src
steps:
- name: decode-creds
image: <redacted>
settings:
encoded_creds:
from_secret: <redacted>
- name: fmt-module
image: hashicorp/terraform
commands:
- cd terraform/modules/ipam-helper
- terraform fmt -check -diff=true
- name: fmt-awsma-prd
image: hashicorp/terraform
commands:
- cd terraform/prd
- terraform fmt -check -diff=true
- name: prd-terraform-plan
image: hashicorp/terraform
commands:
- cd terraform/prd
- terraform init -input=false
- terraform plan -out=PLANFILE -input=false -lock-timeout=5m
- sleep 30
when:
event: push
branch: main
- name: prd-terraform-apply
image: hashicorp/terraform
commands:
- cd terraform/prd
- terraform apply -input=false -lock-timeout=5m PLANFILE
when:
event: push
branch: main