Modify `.drone.yml`.

This commit is contained in:
Kazuhiro MUSASHI 2023-07-09 20:22:05 +09:00
parent 131682f0d0
commit 558fa54f1c
1 changed files with 28 additions and 12 deletions

View File

@ -1,13 +1,29 @@
plan:
image: reg.kazu634.com/kazu634/terraform
commands:
- terraform plan
when:
branch: "!master"
kind: pipeline
type: docker
name: plan
apply:
image: reg.kazu634.com/kazu634/terraform
commands:
- terraform apply
when:
branch: master
steps:
- name: plan
image: reg.kazu634.com/kazu634/terraform
commands:
- terraform plan
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