Any method to select modules in pipeline execution

I have lots of service in on e repository, and I dont wanna deploy all of them everytime.

hope there is a way to select the submodule from module list config, and then pass it to makefile, the makefile will call dockerfile with module name to finish the deploy task

any suggestions?