Because of .env
added in .gitignore. That's why Git doesn't index.
Because of .env
contains sensitive data(passwords, infrastructure, etc.). Instead of that use GitLab CI/CD variables.
Settings > CI/CD > Variables in your GitLab project
That variables automatically available to your runner!