From a5011aab392921b10e296437b0cd14d1d9d42fec Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Thu, 9 Nov 2017 13:31:36 +0800 Subject: [PATCH] remove default branch Signed-off-by: Bo-Yi Wu --- cmd/drone-docker/main.go | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/cmd/drone-docker/main.go b/cmd/drone-docker/main.go index 0efd4d8..3d19d0d 100644 --- a/cmd/drone-docker/main.go +++ b/cmd/drone-docker/main.go @@ -214,19 +214,18 @@ func run(c *cli.Context) error { Email: c.String("docker.email"), }, Build: docker.Build{ - Remote: c.String("remote.url"), - Name: c.String("commit.sha"), - DefaultBranch: c.String("repo.branch"), - Dockerfile: c.String("dockerfile"), - Context: c.String("context"), - Tags: c.StringSlice("tags"), - Args: c.StringSlice("args"), - ArgsEnv: c.StringSlice("args-from-env"), - Squash: c.Bool("squash"), - Pull: c.BoolT("pull-image"), - Compress: c.Bool("compress"), - Repo: c.String("repo"), - LabelSchema: c.StringSlice("label-schema"), + Remote: c.String("remote.url"), + Name: c.String("commit.sha"), + Dockerfile: c.String("dockerfile"), + Context: c.String("context"), + Tags: c.StringSlice("tags"), + Args: c.StringSlice("args"), + ArgsEnv: c.StringSlice("args-from-env"), + Squash: c.Bool("squash"), + Pull: c.BoolT("pull-image"), + Compress: c.Bool("compress"), + Repo: c.String("repo"), + LabelSchema: c.StringSlice("label-schema"), }, Daemon: docker.Daemon{ Registry: c.String("docker.registry"),