cPanel & WHM Version
86.0.21

brandonlin

Registered
Jul 2, 2020
2
0
1
Vancouver
cPanel Access Level
Root Administrator
Hi,

I've searched the forum, and I haven't been able to find the answers to my questions.

1. For push deployment, am I able to select which branch to automatically deploy from? Is that what the "Checked out branch" is for? I tried changing that from master to develop, but the change doesn't take any effect.

2. Is the following setup possible under cPanel GIT deployment?
- Have a single cPanel-managed repositories with two branches: develop and master.
- Apply push deployment for the develop branch such that any updates to this branch gets deployed to the dev site automatically.
- Apply pull deployment for the master branch such that we can update from the develop branch (by treating the develop branch as a remote repo) and deploy each commit manually to the production site.
It doesn't seem possible since there is only one .cpanel.yml file under the root repo directory?

Thank you so much for your help. Really appreciated.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,251
313
Houston
Hello,

Have you read the guide to git we have in our documentation?