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

This commit is contained in:
DatTT127
2026-07-19 01:10:20 +07:00
parent 528f854f39
commit d420bb9d5a

View File

@@ -146,8 +146,16 @@ 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/i9a4e3f6",
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: