hack: Fix build-image script for first time MCO builds
@@ -27,6 +27,7 @@ try:
except subprocess.CalledProcessError as e:
pass
+# Check if MCO image exists locally
if inspect_data is None:
print("No previous build")
else:
@@ -37,6 +38,7 @@ else:
print(f"Previous build {imgname} matches HEAD commit: {gitrev}")
sys.exit(0)
print(f"Previous commit: {prev_ref}")
+
print(f"HEAD commit: {gitrev}")
args = [podman, 'build', '-t', imgname, '-f', 'Dockerfile', '--no-cache']
for k in openshift_keys:
