mirror of
https://github.com/thegeeklab/wp-docker-buildx.git
synced 2024-11-24 23:00:39 +00:00
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.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
|
||||
if len(vargs.Registry) == 0 {
|
||||
vargs.Registry = "https://index.docker.io/v1/"
|
||||
@ -95,6 +102,7 @@ func main() {
|
||||
cmd.Stderr = os.Stderr
|
||||
err := cmd.Run()
|
||||
if err != nil {
|
||||
fmt.Println("Login failed.")
|
||||
os.Exit(1)
|
||||
}
|
||||
} else {
|
||||
@ -124,10 +132,6 @@ func main() {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
if true {
|
||||
return
|
||||
}
|
||||
|
||||
// Push the container
|
||||
cmd = exec.Command("/usr/bin/docker", "push", vargs.Repo)
|
||||
cmd.Dir = workspace.Path
|
||||
|
Loading…
Reference in New Issue
Block a user