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