git:cloud-repo-sync

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

git:cloud-repo-sync [2022/06/22 15:56] – created jmerarigit:cloud-repo-sync [2022/06/22 22:46] (current) jmerari
Line 1: Line 1:
 ====== Sync Git Repo across Cloud Provider ====== ====== Sync Git Repo across Cloud Provider ======
  
-Based on this [[https://medium.com/@dmitryshaposhnik/sync-bitbucket-repo-to-github-669458ea9a5e|article]].+Based on this [[https://medium.com/@dmitryshaposhnik/sync-bitbucket-repo-to-github-669458ea9a5e|article]]. Updated with latest Github requirement of key pair. 
 + 
 +===== On Github Side ===== 
 +  - Create repo designated as mirror of Bitbucket 
 +  - Create ssh-ed25519 Keypair for that account, see [[git:start#using_git_with_ssh_connection|here]] 
 +  - Hold the private and public ready 
 + 
 ===== On Bitbucket Side ===== ===== On Bitbucket Side =====
   - Login as Repo Administrator, not just collaborator.   - Login as Repo Administrator, not just collaborator.
Line 7: Line 14:
   - Enable pipeline for this repository   - Enable pipeline for this repository
   - Open the Repository Settings > SSH Keys   - Open the Repository Settings > SSH Keys
-  - Click generate key+  - Click "Use my own key
 +  - Put the public and private key of the Github repo account that was created above.
   - On the Known Host section, enter github.com, then click Fetch. After the site fingerprint fetched, click Add   - On the Known Host section, enter github.com, then click Fetch. After the site fingerprint fetched, click Add
- 
- 
-===== On Github Side ===== 
-  - Create repo designated as mirror of Bitbucket 
-  - Open the Setting > Deploy keys menu for the given repo 
-  - Add new key, fill with information from Bitbucket. For example, Title = "Bitbucket", Key = the key value generated by Bitbucket 
  
 ===== Bitbucket Pipeline configuration ===== ===== Bitbucket Pipeline configuration =====
Line 30: Line 32:
 </code> </code>
  
 +This will push the changes to the designated Github target. It connects using SSH, with the private key of Github account.
  
  • git/cloud-repo-sync.txt
  • Last modified: 2022/06/22 22:46
  • by jmerari