Files

983 B

demo-gitlab-mirror

Demo of a push mirror from GitLab to GitHub. Commit on GitLab only; every push is mirrored to GitHub, and a commit made on GitHub makes the mirror diverge.

Role Repository Pages
Source gitlab.com/tiennm99/demo-gitlab-mirror https://tiennm99.gitlab.io/demo-gitlab-mirror/
Mirror target github.com/tiennm99/demo-gitlab-mirror https://tiennm99.github.io/demo-gitlab-mirror/

Both Pages sites serve the same setup guide (Vietnamese) from docs/index.html. It is based on the post Mirror repository từ GitLab sang GitHub.

Pages

  • GitLab Pages: .gitlab-ci.yml copies docs/ to public/ on the default branch.
  • GitHub Pages: serves docs/ from main, so no workflow file is needed and the mirror token only needs Contents permission.