Gitlab CI for multiple app folder in 1 Project Repo


We have following setup
1 Project repo with
–> App1 (source code)
–> App2 (source code)

Now we have single(1) .gitlab-ci.yml at repo level.

What we want to achieve is:

With each checkin/commit to Apps (App1 or App2) should trigger CI build and push its own artifacts to registry.

Can we do parameterize Folder Name Apps (App1 or App2)(which has the commit changes ,to be build) to same singe root level .gitlab-ci.yml ?

Is it possible?

Please guide.