Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/curusarn/mirror-gitlab-github-ssh
Mirror repository from Gitlab to Github using Gitlab CI and ssh (Github deploy key)
https://github.com/curusarn/mirror-gitlab-github-ssh
github gitlab gitlab-ci mirroring
Last synced: about 21 hours ago
JSON representation
Mirror repository from Gitlab to Github using Gitlab CI and ssh (Github deploy key)
- Host: GitHub
- URL: https://github.com/curusarn/mirror-gitlab-github-ssh
- Owner: curusarn
- Created: 2018-03-27T12:16:59.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-27T12:28:40.000Z (almost 7 years ago)
- Last Synced: 2024-12-02T14:22:57.028Z (about 2 months ago)
- Topics: github, gitlab, gitlab-ci, mirroring
- Size: 1.95 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mirror-gitlab-github-ssh
Mirror repository from Gitlab to Github using Gitlab CI and ssh (Github deploy key)Inspired by: https://gitlab.com/t-munk/gipsy
This project uses **ssh Github repository deploy key** instead of Github user access token.
**Repository deploy key** enables access to single repository.
**User access token** enables access to all user repositories.## Setup
Add the following environment variables to the GitLab repository you want to push to GitHub:`GITHUB_DEPLOY_KEY` (generate a new key using `ssh-keygen`)
`GITHUB_REPO` (myuser/the-repo)See .gitlab-ci.yml mirror task for an example, add this mirror stage your GitLab repository.
## Usage
Push a commit to eg. the master branch of your GitLab repository.