removed a stupid debug line
This commit is contained in:
parent
fa13b24f4f
commit
5f347612d9
12
main.go
12
main.go
@ -35,6 +35,13 @@ func main() {
|
|||||||
plugin.Param("vargs", &vargs)
|
plugin.Param("vargs", &vargs)
|
||||||
plugin.MustParse()
|
plugin.MustParse()
|
||||||
|
|
||||||
|
// in case someone uses the shorthand repository name
|
||||||
|
// with a custom registry, we should concatinate so that
|
||||||
|
// we have the fully qualified image name.
|
||||||
|
if strings.Count(vargs.Repo, "/") == 1 && len(vargs.Registry) != 0 {
|
||||||
|
vargs.Repo = fmt.Sprintf("%s/%s", vargs.Registry, vargs.Repo)
|
||||||
|
}
|
||||||
|
|
||||||
// Set the Registry value
|
// Set the Registry value
|
||||||
if len(vargs.Registry) == 0 {
|
if len(vargs.Registry) == 0 {
|
||||||
vargs.Registry = "https://index.docker.io/v1/"
|
vargs.Registry = "https://index.docker.io/v1/"
|
||||||
@ -95,6 +102,7 @@ func main() {
|
|||||||
cmd.Stderr = os.Stderr
|
cmd.Stderr = os.Stderr
|
||||||
err := cmd.Run()
|
err := cmd.Run()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
fmt.Println("Login failed.")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -124,10 +132,6 @@ func main() {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
if true {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Push the container
|
// Push the container
|
||||||
cmd = exec.Command("/usr/bin/docker", "push", vargs.Repo)
|
cmd = exec.Command("/usr/bin/docker", "push", vargs.Repo)
|
||||||
cmd.Dir = workspace.Path
|
cmd.Dir = workspace.Path
|
||||||
|
Loading…
Reference in New Issue
Block a user