From bb77afac6e5f86fd191bbd61f8b8ba95e34fce6f Mon Sep 17 00:00:00 2001 From: Jeff Storey Date: Mon, 4 Apr 2016 17:21:41 -0400 Subject: [PATCH 1/2] terraform get and gofmt --- main.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.go b/main.go index 46da9a6..431367f 100644 --- a/main.go +++ b/main.go @@ -56,6 +56,7 @@ func main() { commands = append(commands, deleteCache()) commands = append(commands, remoteConfigCommand(remote)) } + commands = append(commands, getModules()) commands = append(commands, planCommand(vargs.Vars)) if !vargs.Plan { commands = append(commands, applyCommand()) @@ -115,6 +116,13 @@ func remoteConfigCommand(config remote) *exec.Cmd { ) } +func getModules() *exec.Cmd { + return exec.Command( + "terraform", + "get", + ) +} + func planCommand(variables map[string]string) *exec.Cmd { args := []string{ "plan", From b005d3096a05f9c1e867a8cab43cd9297f108438 Mon Sep 17 00:00:00 2001 From: Jeff Storey Date: Mon, 4 Apr 2016 17:39:50 -0400 Subject: [PATCH 2/2] adding git for git-based module resolution --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f8c7e7e..4010c61 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ # docker build --rm=true -t plugins/drone-terraform . FROM gliderlabs/alpine:3.2 -RUN apk-install ca-certificates +RUN apk-install ca-certificates git ENV TERRAFORM_VERSION 0.6.14