Pushing to AWS ECR repo using ecr orb 8.1.2

#!/bin/bash -eo pipefail
#!/bin/bash
PARAM_REGION=$(eval echo “${PARAM_REGION}”)
PARAM_ACCOUNT_URL=“${!PARAM_REGISTRY_ID}.dkr.ecr.${PARAM_REGION}.amazonaws.com”
ECR_COMMAND=“ecr”

if [ “$PARAM_PUBLIC_REGISTRY” == “1” ]; then
PARAM_REGION=“us-east-1”
PARAM_ACCOUNT_URL=“public.ecr.aws”
ECR_COMMAND=“ecr-public”
fi

if [ -n “${PARAM_PROFILE_NAME}” ]; then
set – “$@” --profile “${PARAM_PROFILE_NAME}”
fi

#Shellcheck disable=SC2002
if cat ~/.docker/config.json | grep “${PARAM_ACCOUNT_URL}” > /dev/null 2>&1 ; then
echo “Credential helper is already installed”
else
aws “${ECR_COMMAND}” get-login-password --region “${PARAM_REGION}” “$@” | docker login --username AWS --password-stdin “${PARAM_ACCOUNT_URL}”
fi

cat: /home/circleci/.docker/config.json: No such file or directory
Error response from daemon: Get https://.dkr.ecr..amazonaws.com/v2/: dial tcp: lookup .dkr.ecr..amazonaws.com: no such host

Exited with code exit status 1
CircleCI received exit code 1

I am getting this error when trying to build to by ecr repo here is what my code looks like, and I have the environment variables AWS_ACCESS_KEY_ID, AWS_ECR_ACCOUNT_URL, AWS_REGION, AWS_SECRET_ACCESS_KEY

My config.yml file

version: 2.1
orbs:
docker: circleci/docker@1.5.0
aws-ecr: circleci/aws-ecr@8.1.2
aws-cli: circleci/aws-cli@3.1.1
jobs:
build-and-test:
docker:
- image: cimg/python:3.8.5
steps:
- checkout
- run:
name: Build env
command: |
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt
mkdir test-results
pytest --junitxml=test-results/junit.xml
- store_test_results:
path: test-results
- store_artifacts:
path: test-results
build-docker-image:
machine:
image: ubuntu-2004:202101-01
steps:
- checkout
- docker/check
- docker/build:
image: $DOCKER_LOGIN/$CIRCLE_PROJECT_REPONAME
tag: 0.1.<< pipeline.number >>
- docker/push:
image: $DOCKER_LOGIN/$CIRCLE_PROJECT_REPONAME
tag: 0.1.<< pipeline.number >>
- docker/build:
image: $DOCKER_LOGIN/$CIRCLE_PROJECT_REPONAME
tag: latest
- docker/push:
image: $DOCKER_LOGIN/$CIRCLE_PROJECT_REPONAME
tag: latest

workflows:
say-hello-workflow:
jobs:
- build-and-test
- build-docker-image:
requires:
- build-and-test
- aws-ecr/build-and-push-image:
repo: helloworld_app_repo
tag: 0.1.<< pipeline.number >>