Sign inSign up

owja/git-mirror-repository

By owja

•Updated almost 8 years ago

Simple docker image for mirroring a git repository to another server with Gitlab CI Runner in mind

Image
0

2.4K

owja/git-mirror-repository repository overview

⁠Git Mirror Repository

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:[email protected]/my/repository.git

The command is this:

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

Tag summary

Content type

Image

Digest

Size

9.6 MB

Last updated

almost 8 years ago

docker pull owja/git-mirror-repository