jmccann / drone-terraform

Drone plugin for triggering Terraform deployments
http://plugins.drone.io/jmccann/terraform/
Apache License 2.0
86 stars 93 forks source link

Provide commands to run via actions #58

Closed jmccann closed 6 years ago

jmccann commented 6 years ago

This is an attempt to address #57. It includes breaking changes. Would appreciate your thoughts @msuterski

Valid actions would include: validate, plan, apply, plan-destroy, destroy

The following would still have validate, plan, apply by default.

pipeline:
  terraform:
    image: jmccann/drone-terraform:latest

The following would "dry run" and validate and plan only:

pipeline:
  terraform:
    image: jmccann/drone-terraform:latest
    actions:
      - validate
      - plan

The following would validate only:

pipeline:
  terraform:
    image: jmccann/drone-terraform:latest
    actions:
      - validate

The order the actions are listed in are the order they are executed.

msuterski commented 6 years ago

I thinks this format looks great. Having access to destroy would save me from filing another PR 👍

I asked my team to look at it, too, and provide feedback if they have any.

Thanks for working on it.

dthapa commented 6 years ago

@msuterski how goes the validation. this would be a great feature to release.