From 558fa54f1cc557c7de252df11cdef42892468fdb Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 9 Jul 2023 20:22:05 +0900 Subject: [PATCH] Modify `.drone.yml`. --- .drone.yml | 40 ++++++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6f88df0..a8f8817 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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