Deploy Bedrock/Sage based Wordpress project to a shared hosting (or any other that you have ssh access to) using Gitlab's CI.
- Add SSH_PRIVATE_KEY variable in Gitlab's settings and make sure it works (connecting to the server without password).
- edit variables on top of the .gitlab-ci.yml
- edit branches to run deployments on ("only:" sections in .gitlab-ci.yml)
- make sure you have Runners set up in gitlab
- commit & push both files (in root of your project) and watch the script work.
For more info about the deploy script, check the script README in this repo (which is a repo for the script if you wish to deploy manually): https://github.com/trainoasis/wp-bedrock-sage-bash-deploy
See https://github.com/trainoasis/wp-bedrock-sage-bash-deploy
In general:
- Always backup 1st
- Always understand what you are about to do
- Enjoy