How to setup CI/CD pipline Gitlab?

,

Hi everyone,

I need to configure CI/CD pipeline on GitLab.
My servers are hosted in the AWS cloud. we are developing PHP-based applications and I wanted to automate them .env file.
we are looking to update our system in Gitlab on a new setup.
please guide me what is the best method in Gitlab,

Thanks
Dewshan Henry