Ci cd environment using only apache linux

Hello guys

Im trying to create basic cicd environment using runner in linux create php html pages and tell gitlab when admin commit from gitlab you should move all the repertory to var/www can any one help me to create yml file ?