I need help in determining environments for 2 servers

at this moment I have 2 servers with magento 2 running.

1: to install aplications, make changes to the template and pages, add products to them
2: to run magento in production mode

on a cloud server I installed gitlab and a cubernetes cluster to enable autodevops.

im totaly new to git so my questions are as follows

       - I can perform all tasks such as building and testing without the intervention of a test server

       - I have pushed the master reposetory from my production server, is that the right way or should I have 
         done that from my developer server first?

       -how do i define my gitlab-ci.yml for my develop server and production server

as I said I am totally new to gitlab and I do not get this part completely clear for myself :slight_smile: