Remove logs, remove commented code

This commit is contained in:
Koen Schmeets 2016-06-18 22:36:21 +02:00
parent 29dccc3dc3
commit 57d0b5bcc5

@ -96,10 +96,8 @@ func (p Plugin) Exec() error {
cmds = append(cmds, commandInfo()) // docker info
cmds = append(cmds, commandBuild(p.Build)) // docker build
for _, tag := range p.Build.Tags {
fmt.Fprintf(os.Stdout, "Tagging: %s\n", tag)
cmds = append(cmds, commandTag(p.Build, tag)) // docker tag
if p.Dryrun == false {
fmt.Fprintf(os.Stdout, "Pushing: %s\n", tag)
cmds = append(cmds, commandPush(p.Build, tag)) // docker push
}
}
@ -123,12 +121,10 @@ const dockerExe = "/usr/local/bin/docker"
// helper function to create the docker login command.
func commandLogin(login Login) *exec.Cmd {
fmt.Fprintf(os.Stdout, "Logging in to registry: %s with user: %s and email: %s\n", login.Registry, login.Username, login.Email)
return exec.Command(
dockerExe, "login",
"-u", login.Username,
"-p", login.Password,
// "-e", login.Email,
login.Registry,
)
}