|
|
@ -2,14 +2,18 @@ package main |
|
|
|
|
|
|
|
import ( |
|
|
|
"fmt" |
|
|
|
"io/ioutil" |
|
|
|
"os" |
|
|
|
"os/exec" |
|
|
|
"strings" |
|
|
|
"io/ioutil" |
|
|
|
|
|
|
|
"github.com/drone/drone-plugin-go/plugin" |
|
|
|
) |
|
|
|
|
|
|
|
var ( |
|
|
|
buildCommit string |
|
|
|
) |
|
|
|
|
|
|
|
type terraform struct { |
|
|
|
Remote remote `json:"remote"` |
|
|
|
Plan bool `json:"plan"` |
|
|
@ -24,6 +28,7 @@ type remote struct { |
|
|
|
} |
|
|
|
|
|
|
|
func main() { |
|
|
|
fmt.Printf("Drone Terraform Plugin built from %s\n", buildCommit) |
|
|
|
|
|
|
|
workspace := plugin.Workspace{} |
|
|
|
vargs := terraform{} |
|
|
|