Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

owja/git-mirror-repository

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Git Mirror Repository

Docker Build Status Docker Image Size Docker Pulls

A simple docker image for mirroring a git repository to another server. This is created with a Gitlab CI Runner in mind.

Usage

Simply configure the Gitlab CI runner like this:

.gitlab-ci.yml

stages:
  - mirror

mirror:
  image: owja/git-mirror-repository
  stage: mirror
  retry: 2
  variables:
    GIT_STRATEGY: none
    GIT_CHECKOUT: "false"
  script:
    - git-mirror-repository ${CI_REPOSITORY_URL} htts://username:password@git.example.com/my/repository.git

The command is this:

$ git-mirror-repository [source] [target]