Can't deploy git repo with .cpanel.yml

chadreitsma

Registered
Mar 25, 2022
3
0
1
Canada
cPanel Access Level
Website Owner
Hey guys,
I have a valid .cpanel.yml file in the top-level directory located at /home/user/public_html, which contains:

---
deployment:
tasks:
- export DEPLOYPATH=/home/user/public_html/
- /bin/cp -R wp-content $DEPLOYPATH

cPanel still shows " The system cannot deploy " and doesn't allow me to do a head commit in Repository panel.

Not sure what's wrong here? I followed the guides.
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
574
266
138
IN
cPanel Access Level
Root Administrator
Just to confirm you are using the correct cPanel username in the DEPLOYPATH
 

chadreitsma

Registered
Mar 25, 2022
3
0
1
Canada
cPanel Access Level
Website Owner
Just to confirm you are using the correct cPanel username in the DEPLOYPATH
Yes, I just left it out for security reasons, but thank-you for confirming.

We've actually decided against this deployment method because this whole process has been a massive pain in the ass. We were also running into merge conflicts after pushing to our repo then doing a manual update (That should never ever happen because there aren't merge conflicts in the repo).

To be honest cPanel really needs to step up their game here. Plesk is lightyears ahead of you guys in this department. With Plesk when you add a repo it automatically generates an SSH key, and displays it for you, AND it provides a proper webhook URL so you can add that in the repo settings. It just works. I hope they fix this soon.