update
This commit is contained in:
@@ -92,6 +92,9 @@ def build_and_push(
|
||||
print(f"Configuring ECR authentication...")
|
||||
region = os.getenv("AWS_REGION", "us-east-1")
|
||||
|
||||
if registry.startswith("public.ecr.aws"):
|
||||
ecr = boto3.client("ecr-public", region_name=region)
|
||||
else:
|
||||
ecr = boto3.client("ecr", region_name=region)
|
||||
auth = ecr.get_authorization_token()
|
||||
token = auth["authorizationData"][0]["authorizationToken"]
|
||||
|
||||
Reference in New Issue
Block a user