Browse code

Fix build command auth by adding the auth config and registry objects to the build job environment.

Docker-DCO-1.1-Signed-off-by: Jake Moshenko <jake@devtable.com> (github: jakedt)

jakedt authored on 2014/02/21 09:22:13
Showing 1 changed files
... ...
@@ -912,6 +912,8 @@ func postBuild(eng *engine.Engine, version float64, w http.ResponseWriter, r *ht
912 912
 	job.Setenv("q", r.FormValue("q"))
913 913
 	job.Setenv("nocache", r.FormValue("nocache"))
914 914
 	job.Setenv("rm", r.FormValue("rm"))
915
+	job.SetenvJson("authConfig", authConfig)
916
+	job.SetenvJson("configFile", configFile)
915 917
 
916 918
 	if err := job.Run(); err != nil {
917 919
 		if !job.Stdout.Used() {