How to sync github repo to AEM as cloud repo | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Saravanan_Dharmaraj

@akashch2 You can use Jenkins or Git Hub Action to set up the pipeline to push the code from your github to Adobe's git, please check this blog

https://chintalapudi4.medium.com/integrating-internal-git-with-cloud-manager-using-jenkins-c2dd2d2727f9

 

Currently Adobe supports private repo too for cloud manager deployment

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/using-cloud-manager/managing-code/private-repositories

 

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/using-cloud-manager/managing-code/integrating-with-git  - This gives complete picture how the cloud manager is set up with git. 

 

3 replies

Saravanan_Dharmaraj
Community Advisor
Saravanan_DharmarajCommunity AdvisorAccepted solution
Community Advisor
September 5, 2024

@akashch2 You can use Jenkins or Git Hub Action to set up the pipeline to push the code from your github to Adobe's git, please check this blog

https://chintalapudi4.medium.com/integrating-internal-git-with-cloud-manager-using-jenkins-c2dd2d2727f9

 

Currently Adobe supports private repo too for cloud manager deployment

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/using-cloud-manager/managing-code/private-repositories

 

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/using-cloud-manager/managing-code/integrating-with-git  - This gives complete picture how the cloud manager is set up with git. 

 

RahulBGPandey
Level 2
September 5, 2024

Hi Akash,

 

For pushing our code from GitHub to cloud repo we use a manual approach as below -

 

  1. commit and push changes to Github repo. 
  2. Create a PR to get it reviewed.
  3. Once reviewed and merged, push the branch to cloud Repo.

For pushing branches to the cloud repo, we have added an extra remote as cloud-origin which can be utilised while executing the push command.

 

These steps can be automated using Jenkins or some other pipelines.

 

Thanks

 

 

 

Rohan_Garg
Community Advisor
Community Advisor
September 6, 2024

As mentioned by @saravanan_dharmaraj, you can now directly validate your code in Github repo through cloud manager thus removing the need to sync your code with Adobe repo - Refer Adding Private Repositories in Cloud Manager

How the code sync from github to adobe repo works is via webhooks - You can refer to Github.com webhook verification

Hope this helps!