mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Make sure ENV instruction within build perform a commit each time
This commit is contained in:
parent
ef1d1aefa7
commit
68934878f1
1 changed files with 2 additions and 2 deletions
|
@ -167,9 +167,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)
|
||||
}
|
||||
return b.commit("", b.config.Cmd, fmt.Sprintf("ENV %s", replacedVar))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue