Automatic build runs into error

I have managed to solve the problem. I will list what I have done in order to make it truly reproducible:

  1. Deleted Docker form the services listed from the GitHub repo.
  2. Deleted the linking of GitHub and Docker accounts on the Docker Hub end.
  3. Re-established the link. Chose for the recommended one.
  4. Deleted the deploy keys from the Github repo.
  5. Deleted Docker repo.
  6. Re-created Docker repo as an automatic build and public.
  7. (At the Docker build settings the deploy key disappeared.) At the build settings I linked my repo with the docker repo that I used with FROM in the docker file.
  8. Also added the built setting that from the master branch it should create an image with latest tag. Then triggered a build.

I believe that the last two steps could have been the crucial ones. (Although the fact that the deploy key disappeared could also be important.)