File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 "encoding/json"
55 "fmt"
66 "os"
7- "strconv"
87
98 "github.com/deis/deis/builder"
109)
@@ -29,8 +28,10 @@ func main() {
2928 var procfile builder.ProcessType
3029 assert (json .Unmarshal ([]byte (os .Args [5 ]), & procfile ))
3130
32- dockerfile , err := strconv .ParseBool (os .Args [6 ])
33- assert (err )
31+ var dockerfile string = os .Args [6 ]
32+ if dockerfile == "false" {
33+ dockerfile = ""
34+ }
3435
3536 buildHook := builder.BuildHook {
3637 Sha : os .Args [1 ],
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ type BuildHook struct {
2727 ReceiveRepo string `json:"receive_repo"`
2828 Image string `json:"image"`
2929 Procfile ProcessType `json:"procfile"`
30- Dockerfile bool `json:"dockerfile"`
30+ Dockerfile string `json:"dockerfile"`
3131}
3232
3333// BuildHookResponse represents a controller's build-hook response object.
You can’t perform that action at this time.
0 commit comments