Getting invalid argument error when trying to build dockerfile

docker build -t serendipity111011/repo-name:latest -t serendipity111011/repo-name:$SHA -f ./Apollo API/Dockerfile ./Apollo API

I am trying to run the above command to build docker image and I am getting below error

invalid argument "serendipity111011/repo-name:" for "-t, --tag" flag: invalid reference format

What am I doing wrong?

Source: StackOverflow