mirror of
https://github.com/docker/docs.git
synced 2026-04-12 14:25:46 +07:00
Make sure ENV instruction within build perform a commit each time
This commit is contained in:
@@ -172,9 +172,9 @@ func (b *buildFile) CmdEnv(args string) error {
|
||||
|
||||
if envKey >= 0 {
|
||||
b.config.Env[envKey] = replacedVar
|
||||
return nil
|
||||
} else {
|
||||
b.config.Env = append(b.config.Env, replacedVar)
|
||||
}
|
||||
b.config.Env = append(b.config.Env, replacedVar)
|
||||
return b.commit("", b.config.Cmd, fmt.Sprintf("ENV %s", replacedVar))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user