diff --git a/cmd/drone/drone.go b/cmd/drone/drone.go index e3f97ee3..9fdc6b3c 100644 --- a/cmd/drone/drone.go +++ b/cmd/drone/drone.go @@ -164,7 +164,7 @@ func run(path string) { if len(*identity) != 0 { key, err = ioutil.ReadFile(*identity) if err != nil { - fmt.Printf("[Error] Could not find or read identity file %s\n", identity) + fmt.Printf("[Error] Could not find or read identity file %s\n", *identity) os.Exit(1) return } diff --git a/pkg/build/docker/image.go b/pkg/build/docker/image.go index 85954b05..ca5eb052 100644 --- a/pkg/build/docker/image.go +++ b/pkg/build/docker/image.go @@ -59,7 +59,7 @@ func (c *ImageService) List() ([]*Images, error) { // Create an image, either by pull it from the registry or by importing it. func (c *ImageService) Create(image string) error { - return c.do("POST", fmt.Sprintf("/images/create?fromImage=%s"), nil, nil) + return c.do("POST", fmt.Sprintf("/images/create?fromImage=%s", image), nil, nil) } func (c *ImageService) Pull(image string) error { diff --git a/pkg/plugin/publish/s3.go b/pkg/plugin/publish/s3.go index cfa75e7d..029b0b5f 100644 --- a/pkg/plugin/publish/s3.go +++ b/pkg/plugin/publish/s3.go @@ -65,8 +65,8 @@ func (s *S3) Write(f *buildfile.Buildfile) { // make sure a default access is set // let's be conservative and assume private - if len(s.Region) == 0 { - s.Region = "private" + if len(s.Access) == 0 { + s.Access = "private" } // if the target starts with a "/" we need diff --git a/pkg/template/emails/success.html b/pkg/template/emails/success.html index a5d9a4b9..31facdfe 100644 --- a/pkg/template/emails/success.html +++ b/pkg/template/emails/success.html @@ -1,4 +1,4 @@ -{{ define "title" }}FAILURE{{end}} +{{ define "title" }}SUCCESS{{end}} {{ define "content" }} @@ -25,4 +25,4 @@ {{ .Commit.Message }} -{{ end }} \ No newline at end of file +{{ end }}