Housekeeping and polish based on test discoveries

This commit is contained in:
Cian Hughes
2023-11-03 16:52:12 +00:00
parent e279c23745
commit 2f452892b0
22 changed files with 163 additions and 185 deletions

View File

@@ -47,7 +47,10 @@ def validation_result() -> str:
path=".",
dockerfile=str(dockerfile),
tag="validate",
buildargs={"CWD_MOUNTDIR": str(config.CWD_MOUNTDIR)},
buildargs={
"CWD_MOUNTDIR": str(config.CWD_MOUNTDIR),
"BUILD_DIR": str(config.BUILD_DIR.relative_to(config.PROJECT_ROOT)),
},
rm=config.CLEANUP_IMAGES,
pull=True,
quiet=True,
@@ -57,7 +60,7 @@ def validation_result() -> str:
mounts=[
config.CWD_MOUNT,
],
remove=True,
remove=config.CLEANUP_IMAGES,
)
if config.CLEANUP_IMAGES:
image.remove(force=True)