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

This commit is contained in:
DatTT127
2026-07-19 01:16:10 +07:00
parent d420bb9d5a
commit 2cf97fc554

View File

@@ -146,16 +146,6 @@ def build_and_push(
print(f"Running Kaniko: {' '.join(kaniko_cmd)}")
result = subprocess.run(kaniko_cmd, capture_output=True, text=True)
auth_token = subprocess.run(
"aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws",
shell=True,
capture_output=True,
text=True
)
print(auth_token.stdout)
if auth_token.returncode != 0:
raise RuntimeError(f"ECR authentication failed:\n{auth_token.stderr}")
print(result.stdout)
if result.returncode != 0: