Sign inSign up

vitovan/drone-git-sync

By vitovan

•Updated almost 7 years ago

Keep two Git repositories in sync

Image
0

573

vitovan/drone-git-sync repository overview

Drone Git Sync Icon

⁠drone-git-sync

This Drone⁠ plugin allows you to keep two Git repositories in sync

Currently, only Git over SSH is supported. PR are welcome.

⁠Usage

steps:
  - name: sync
    image: vitovan/drone-git-sync:latest
    settings:
      repo_from: [email protected]:vitovan/drone-git-sync.git
      repo_to: [email protected]:vitovan/drone-git-sync.git
      ssh_key:
        from_secret: ssh_key

Optional settings:

  • push_arg: '' You can set this to --force to get git push --force ...

⁠How to set SSH key

cat ~/.ssh/id_rsa | base64

Make sure your key does not need a password, otherwise see below

⁠How to use this without Drone

docker run -it --rm \
       -e=PLUGIN_SSH_KEY=`cat ~/.ssh/id_rsa | base64` \
       [email protected]:vitovan/drone-git-sync.git \
       [email protected]:vitovan/drone-git-sync.git \
       vitovan/drone-git-sync:latest

This will prompt you to enter your password, if you have one

⁠Credits

Tag summary

Content type

Image

Digest

Size

12.3 MB

Last updated

almost 7 years ago

docker pull vitovan/drone-git-sync