update
This commit is contained in:
@@ -146,6 +146,9 @@ 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)
|
||||
|
||||
print(result.stdout)
|
||||
if result.returncode != 0:
|
||||
raise RuntimeError(f"Kaniko build failed:\n{result.stderr}")
|
||||
|
||||
Reference in New Issue
Block a user