diff --git a/cli/build.go b/cli/build.go index 0c5a3e1b5..cfe8bd21d 100644 --- a/cli/build.go +++ b/cli/build.go @@ -127,10 +127,10 @@ func run(path, identity, dockerhost, dockercert, dockerkey string, publish, depl } if deploy == false { - s.Publish = nil + s.Deploy = nil } if publish == false { - s.Deploy = nil + s.Publish = nil } // get the repository root directory