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