Prefect-gitlab deployment

Hi, i am new to Prefect with a lot of questions.
I have a Kubernetes work-pool and workers running on a remote server. Is it possible to run flows inside a gitlab repo? There are some other files inside repo (python scripts, dbt project).
Does Prefect clone the files? If not, where does it run these files? How does it retrieve the latest version of the flow and code? I would really appreciate it if you could help.

image