Fail if docker build fails

This commit is contained in:
Paul Gauthier 2023-06-28 11:02:47 -07:00
parent 67c27fd9ef
commit 67114d1a80

View file

@ -443,6 +443,10 @@ def build_docker():
except subprocess.CalledProcessError as e:
res = f"Failed to build Docker image: {e.output}"
raise e
if result.returncode != 0:
raise Exception("Unable to build docker image")
return res