I have the following setup:
- Local development environment on Mac OSX
- Remote cloud server on Ubuntu 22.04
- Gitlab for version control
How can I get a similar workflow like my Nuxt.js projects, where I develop locally, push to Gitlab and then have the latest commit automatically pushed to a staging server (the remote cloud server in my case)?
I have found the following resources regarding this topic but I'm not sure what the common / best practice is in building a CI/CD pipeline for Wordpress projects:
Continuous Delivery on Wordpress using Docker
How can I put a database under git (version control)?
Is Docker the solution I am looking for or do I need other tools to create this pipeline?
I found this tutorial but I wanted to make sure the general approach is correct: https://www.digitalocean.com/community/tutorials/how-to-automate-wordpress-deployments-with-digitalocean-and-buddy
Thank you for your help!