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
 | 
							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")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user