Closed ozbillwang closed 6 years ago
@ozbillwang - I'm not sure if this work-flow would work for you but how about running plan
when you open a PR then plan
and apply
when you merge to the master
branch?
Something like this:
pipeline:
plan:
image: jmccann/drone-terraform:5.0
actions:
- validate
- plan
branches:
exclude:
- master
apply:
image: jmccann/drone-terraform:5.0
actions:
- plan
- apply
when:
branch: master
I do exactly what @roobert mentioned. I don't think you can pause and wait for manual confirmation with drone in general currently also.
I'd like to run a dry-run command first, then I can check the log, if everything goes fine, then click a "unblock" button or confirm with y/n, then apply the change.