Public | Automated Build

Last pushed: 3 months ago
Short Description
Keep a fork automatically synchronized with its upstream
Full Description

viossat/git-fork-sync

Simple tool to keep a Git repository synchronized with its upstream.

  • Alpine-based, 28 MB
  • Synchronizes all branches and tags
  • Uses Cron, no webhook, no API
  • SSH ready
  • Environment variables
    • FORK: fork URL
    • UPSTREAM: upstream URL
    • CRON: Cron expression which launchs the synchronization, * * * * * by default

Usage

Remote SSH fork on GitHub:

docker run -d -e UPSTREAM=git@github.com:rails/rails.git -e FORK=git@github.com:your_username/rails.git -v /path/ssh/private_key_rsa:/ssh/id_rsa viossat/git-fork-sync

Local fork of an HTTPS remote repo:

docker run -d -e UPSTREAM=https://gitlab.com/gitlab-org/gitlab-ce.git -e FORK=/fork -v /path/local/fork:/fork viossat/git-fork-sync
Docker Pull Command
Owner
viossat
Source Repository