Expand my Community achievements bar.

SOLVED

How to sync github repo to AEM as cloud repo

Avatar

Level 2

With every commit in github repo should be sync with cloud repo.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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-c2dd2d272...

 

Currently Adobe supports private repo too for cloud manager deployment

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/usi...

 

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

 

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

@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-c2dd2d272...

 

Currently Adobe supports private repo too for cloud manager deployment

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/usi...

 

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

 

Avatar

Level 2

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

 

 

 

Avatar

Community Advisor

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!