gentle-flower-25372
04/04/2024, 7:51 PMdef docker_cache_from(repository: str, image_tags: list[str]):
cache_from = []
for image_tag in image_tags:
cache_from.append(
{
"type": "registry",
"ref": f"our-register-url/{repository}:{image_tag}",
}
)
return cache_from
The macro is used as an argument to docker_image cache_from param.gentle-flower-25372
04/04/2024, 8:57 PMmy_module = __import__('module_name')
gentle-flower-25372
04/04/2024, 8:57 PMgentle-flower-25372
04/04/2024, 9:00 PMos_module = getattr(__builtins__, '__import__')('os')
imp = "".join(['i', 'm', 'p', 'o', 'r', 't'])
exec(f"{imp} os")
os_module = eval('__import__("os")')
broad-processor-92400
04/05/2024, 3:41 AMbroad-processor-92400
04/05/2024, 3:46 AMos
in particular seems like an risky one!)