gitlab-ci: Don't rely on $CI_PROJECT_NAME

The name of a forked repository can be changed later, in which case this
would fail to refer to the main repository.

Pointed out by Eric Engestrom in
mesa/mesa!224 .
13 jobs for gitlab-ci-docker-image-only in 3 minutes and 4 seconds (queued for 4 seconds)