Simple WordPress Auto-deployment using GitLab CI/CD
While researching WordPress auto-deployment techniques, I found plenty of guides written for particular hosting platforms, or involving Docker containers and Kubernetes. As a result, I put together this guide as a light-weight and simple approach for configuring WordPress auto-deployment with GitLab CI/CD. Summary GitLab is configured to open an SSH connection into the destination server, and install WordPress Core and plugins using WP CLI. Custom code is then copied to the destination server and build commands are executed (e.g. npm install) to compile any frontend assets. GitLab will SSH into the destination server, install WordPress, and copy in any custom code/themes. Existing Posts and settings in the WordPress database are not modified, and neither are files within wp-content/uploads. This process deploys code only. Requirements Aside from frontend build tools (e.g. npm and composer), the only backend dependency required on the……