Coder Social home page Coder Social logo

oldtyt / gitlab-pull-mirror Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 8 KB

Docker container designed to create a pipeline that automatically pulls mirror repositories into projects for GitLab CE.

Dockerfile 19.72% Shell 8.18% Python 72.10%
gitlab-ci mirror

gitlab-pull-mirror's Introduction

gitlab-pull-mirror

Docker container designed to create a pipeline that automatically pulls mirror repositories into projects for GitLab CE.

How to use

  1. In the mirror group, create a new project and specify the source git repository's URL in its description.
  2. ...
  3. Enjoy the benefits!

Prepare

  1. Create group in gitlab for mirrored repos.
  2. Create a repository with a pipeline:
#.gitlab-ci.yml
---
stages:
  - mirror

mirror_repositories:
  stage: mirror
  image:
    name: ghcr.io/oldtyt/gitlab-pull-mirror
    entrypoint: [""]
  variables:
    GITLAB_API_URL: "https://gitlab.com/"
    GIT_STRATEGY: none
    GITLAB_GROUP: MY_MIRRORED_GITLAB_GROUP
  script:
    - /app/entrypoint.sh
  1. Generate a CI/CD variable named GITLAB_API_TOKEN by visiting this page.
  2. Set up a pipeline schedule by navigating to: CI/CD -> Pipeline schedules -> New schedule.
  3. Optional: Add your SSH_KEY_PRIVATE as a CI/CD variable.

gitlab-pull-mirror's People

Contributors

oldtyt avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.