update
Some checks failed
Backend EC - Modal Deployment / build-and-push (push) Failing after 54s
Backend EC - Modal Deployment / notify-deploy (push) Has been skipped

This commit is contained in:
DatTT127
2026-07-19 00:14:10 +07:00
parent 10c21fbd68
commit 10b9991e94

View File

@@ -111,22 +111,22 @@ def build_and_push(
(docker_config_dir / "config.json").write_text(json.dumps(config)) (docker_config_dir / "config.json").write_text(json.dumps(config))
print(f"ECR auth configured for {registry}") print(f"ECR auth configured for {registry}")
# --- INSPECT MODAL WORKSPACE DIRECTORIES HERE --- # # --- INSPECT MODAL WORKSPACE DIRECTORIES HERE --- Success
print("\n=== DEBUG: Inspecting Modal Container Filesystem ===") # print("\n=== DEBUG: Inspecting Modal Container Filesystem ===")
try: # try:
# 1. Print the contents of the /workspace root directory # # 1. Print the contents of the /workspace root directory
print(f"Contents of {workspace_root}:") # print(f"Contents of {workspace_root}:")
workspace_files = subprocess.run(["ls", "-la", str(workspace_root)], capture_output=True, text=True) # workspace_files = subprocess.run(["ls", "-la", str(workspace_root)], capture_output=True, text=True)
print(workspace_files.stdout) # print(workspace_files.stdout)
# 2. Verify exactly where the copied Kaniko binary lives # # 2. Verify exactly where the copied Kaniko binary lives
print("Checking for Kaniko binary location:") # print("Checking for Kaniko binary location:")
kaniko_check = subprocess.run(["ls", "-la", "/usr/local/bin/kaniko"], capture_output=True, text=True) # # kaniko_check = subprocess.run(["ls", "-la", "/usr/local/bin/kaniko"], capture_output=True, text=True)
print(kaniko_check.stdout if kaniko_check.returncode == 0 else "❌ Kaniko not found in /usr/local/bin/kaniko\n") # # print(kaniko_check.stdout if kaniko_check.returncode == 0 else "❌ Kaniko not found in /usr/local/bin/kaniko\n")
except Exception as e: # # except Exception as e:
print(f"Failed to run inspection: {e}") # # print(f"Failed to run inspection: {e}")
print("==================================================\n") # # print("==================================================\n")
# Build with Kaniko # Build with Kaniko
kaniko_cmd = [ kaniko_cmd = [
@@ -134,7 +134,7 @@ def build_and_push(
"--context", str(workspace_root), "--context", str(workspace_root),
"--dockerfile", str(dockerfile_path), "--dockerfile", str(dockerfile_path),
"--destination", full_image, "--destination", full_image,
"--platform", platform, "--custom-platform", platform,
"--verbosity", "info", "--verbosity", "info",
] ]