Best Practice To create ci/cd pipelines in gitlab self hosted server

Hey guys,

can anyone of you suggest me a best practice of creating CI/CD pipelines in gitlab self hosted server that includes DevSecOps.

Thanks
Hari