Differences
This shows you the differences between two versions of the page.
| git:cloud-repo-sync [2022/06/22 15:56] – created jmerari | git: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:// | + | Based on this [[https:// |
| + | |||
| + | ===== On Github Side ===== | ||
| + | - Create repo designated as mirror of Bitbucket | ||
| + | - Create ssh-ed25519 Keypair for that account, see [[git: | ||
| + | - Hold the private and public ready | ||
| + | |||
| ===== On Bitbucket Side ===== | ===== On Bitbucket Side ===== | ||
| - Login as Repo Administrator, | - Login as Repo Administrator, | ||
| 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 | + | - 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 Pipeline configuration ===== | ===== Bitbucket Pipeline configuration ===== | ||
| Line 30: | Line 32: | ||
| </ | </ | ||
| + | This will push the changes to the designated Github target. It connects using SSH, with the private key of Github account. | ||