mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-18 06:36:30 +00:00
Better cleanup for local build add-ons (#161)
* Better cleanup for local build add-ons * fix lint
This commit is contained in:
parent
cb7710c23f
commit
dfda7dc748
@ -203,7 +203,9 @@ class DockerAddon(DockerBase):
|
|||||||
|
|
||||||
_LOGGER.info("Start build %s on %s", build_tag, build_dir)
|
_LOGGER.info("Start build %s on %s", build_tag, build_dir)
|
||||||
image = self.dock.images.build(
|
image = self.dock.images.build(
|
||||||
path=str(build_dir), tag=build_tag, pull=True)
|
path=str(build_dir), tag=build_tag, pull=True,
|
||||||
|
forcerm=True
|
||||||
|
)
|
||||||
|
|
||||||
image.tag(self.image, tag='latest')
|
image.tag(self.image, tag='latest')
|
||||||
self.process_metadata(image.attrs, force=True)
|
self.process_metadata(image.attrs, force=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user