fix: always update containerfile if it is to build
This commit is contained in:
parent
92f95d8658
commit
603f1c3654
@ -216,13 +216,13 @@ func (c Container) Build(image string, envs, runs []string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err = os.WriteFile(cfile, []byte(cf), os.ModePerm)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if c.Exist() {
|
if c.Exist() {
|
||||||
c.Log.Info().Msg("update")
|
c.Log.Info().Msg("update")
|
||||||
err = os.WriteFile(cfile, []byte(cf), os.ModePerm)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
c.Log.Info().Msg("build")
|
c.Log.Info().Msg("build")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user