diff --git a/workspace/sprint_1_2/CODEBASE/deps/implementation/backend_deploy/gitea_modal_build.py b/workspace/sprint_1_2/CODEBASE/deps/implementation/backend_deploy/gitea_modal_build.py index c331ea0..e10878e 100644 --- a/workspace/sprint_1_2/CODEBASE/deps/implementation/backend_deploy/gitea_modal_build.py +++ b/workspace/sprint_1_2/CODEBASE/deps/implementation/backend_deploy/gitea_modal_build.py @@ -92,11 +92,13 @@ 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) + # if registry.startswith("public.ecr.aws"): + # ecr = boto3.client("ecr-public", region_name=region) + # else: + # ecr = boto3.client("ecr", region_name=region) + ecr = boto3.client("ecr-public", region_name=region) auth = ecr.get_authorization_token() + print(f"Check the auth {auth}") token = auth["authorizationData"][0]["authorizationToken"] username, password = base64.b64decode(token).decode().split(":")