Code deploy to Digital Ocean server from Gitlab

I want to deploy codes automatically form Gitlab to server. It is PHP project and i setup the CI for that project For configuring the deployment i searched and found a doc on configuring .gitlab-ci.yml I read the doc but could not configure the build process.

Is there any step by step guide with example to deploy code from Gitlab to Digital Ocean ubuntu server?