Mirror two git remotes
414
Mirror two git remotes
(alternate description: containerize everything!)
It periodically fetches an origin repo. If the last commit of a branch on the watchlist changed, it pushes that branch to the destination. It does not need to checkout or pull everything locally.
Whether you use a container or call the Python script directly, set the following parameters as environment variables:
ORIGIN_URL: remote URL of the origin repoDESTINATION_URL: remote URL of the destination repoBRANCHES_LIST: list of branches to update, e.g. [branch1,branch2,branch3]UPDATE_PERIOD: delay between updates (seconds) [default: 60]This currently expects one-time authentication methods in the remote URL itself. It does not currently use GIT_ASKPASS.
https://<token>@github.com/<username>/<repo>.git)https://<username>:<password>@github.com/<username>/<repo>.git) or SSHContent type
Image
Digest
Size
328 MB
Last updated
almost 6 years ago
docker pull christophebedard/git_mirrorer