This is an old revision of the document!
Sync Git Repo across Cloud Provider
Based on this article.
On Bitbucket Side
- Login as Repo Administrator, not just collaborator.
- Open the Repository Settings > Settings menu for the given repo.
- Enable pipeline for this repository
- Open the Repository Settings > SSH Keys
- Click generate key
- 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
Use the following example as template. Edit the repo name accordingly.
clone:
depth: full
pipelines:
default:
- step:
script:
- git push --mirror git@github.com:semaidevadmin/semai-pro-kuasa-api.git