Modify `.drone.yml`.
This commit is contained in:
parent
131682f0d0
commit
558fa54f1c
28
.drone.yml
28
.drone.yml
|
@ -1,13 +1,29 @@
|
||||||
plan:
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: plan
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: plan
|
||||||
image: reg.kazu634.com/kazu634/terraform
|
image: reg.kazu634.com/kazu634/terraform
|
||||||
commands:
|
commands:
|
||||||
- terraform plan
|
- terraform plan
|
||||||
when:
|
|
||||||
branch: "!master"
|
|
||||||
|
|
||||||
apply:
|
trigger:
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- master
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: plan
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: apply
|
||||||
image: reg.kazu634.com/kazu634/terraform
|
image: reg.kazu634.com/kazu634/terraform
|
||||||
commands:
|
commands:
|
||||||
- terraform apply
|
- terraform apply
|
||||||
when:
|
|
||||||
branch: master
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
Loading…
Reference in New Issue