Implementing CI/CD in cPanel enables automated build, test, and deployment processes directly from a GitHub repository.
With an efficient pipeline integration, every code change can be quickly and consistently deployed to production β improving reliability, speed, and overall application development quality.
π Recommended Tutorial:
Read the full guide here π
Implementing CI/CD to cPanel β Kimino.my.id
ci.cd-cpanel/
βββ .github
β βββ workflows
β βββ deploy.yml
βββ index.html
βββ style.css
βββ .gitignoreThis repository uses GitHub Actions to automate deployment to a cPanel server.
The workflow file (.github/workflows/deploy.yml) triggers automatically when code is pushed to the main branch.
- Detect changes pushed to the
mainbranch. - Run the CI/CD pipeline on GitHub Actions.
- Connect securely to your cPanel server using SSH credentials.
- If the project doesnβt exist on the server β perform
git clone. - If it already exists β perform
git pullto update code. - Deployment completes automatically and efficiently.
Before deployment, make sure the following GitHub Secrets are configured:
| Secret Name | Description |
|---|---|
SSH_HOST |
Hostname or IP of your cPanel server |
SSH_USERNAME |
SSH username |
SSH_PRIVATE_KEY |
Private SSH key for authentication |
SSH_PASSPHRASE |
(Optional) Passphrase for private key |
SSH_PARENT_DIR |
Parent directory on the server where the project will be deployed |
- GitHub Actions β Continuous Integration & Deployment
- cPanel β Hosting environment
- SSH β Secure connection between GitHub and server
- HTML / CSS β Frontend assets for deployment
- Automated Deployment β Push changes and let GitHub Actions handle the rest.
- Consistency β Every deployment follows the same automated process.
- Speed β Faster releases without manual uploads.
- Security β SSH-based connection ensures a secure deployment channel.
This project is licensed under the MIT License.
98hub
Automating web deployment for faster and more reliable workflows.
π GitHub Profile