1
0
mirror of https://github.com/docker/cli.git synced 2026-01-18 08:21:31 +03:00

Merge pull request #4271 from DevTable/fixbuildauth

Fix build auth by adding config to the build job environment
Upstream-commit: 81cd2054f6484837029dde93d40c0e44b684bf08
Component: engine
This commit is contained in:
Michael Crosby
2014-02-21 13:03:31 -05:00

View File

@@ -912,6 +912,8 @@ func postBuild(eng *engine.Engine, version float64, w http.ResponseWriter, r *ht
job.Setenv("q", r.FormValue("q"))
job.Setenv("nocache", r.FormValue("nocache"))
job.Setenv("rm", r.FormValue("rm"))
job.SetenvJson("authConfig", authConfig)
job.SetenvJson("configFile", configFile)
if err := job.Run(); err != nil {
if !job.Stdout.Used() {