Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
copy

GitHub Action

Mirror Git

v0.0.9

Mirror Git

copy

Mirror Git

Synchronize git repositories like a mirror

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Mirror Git

uses: k8scat/[email protected]

Learn more about this action in k8scat/action-mirror-git

Choose a version

action-mirror-git

Synchronize git repositories like a mirror.

Support

  • Multi platforms like GitHub, GitLab, BitBucket, etc.
  • Protocol under HTTPS and SSH
  • Sync branches, tags and commits
  • Ignore specific repositories
  • Specify repositories without pushing tags
  • Auto create repository on the dest git server with custom script
  • Notify with Slack, DingTalk or Lark

Example

workflows/example.yml

Run

docker run \
  --rm \
  -e INPUT_SOURCE_PROTOCOL \
  -e INPUT_SOURCE_HOST \
  -e INPUT_SOURCE_USERNAME \
  -e INPUT_SOURCE_TOKEN \
  -e INPUT_DEST_PROTOCOL \
  -e INPUT_DEST_HOST \
  -e INPUT_DEST_USERNAME \
  -e INPUT_DEST_TOKEN \
  -e INPUT_PUSH_TAGS \
  -e INPUT_MIRROR_REPOS \
  -e INPUT_IGNORED_REPOS \
  -e INPUT_SKIP_TAGS_REPOS \
  -e INPUT_DEST_CREATE_REPO_SCRIPT \
  -e INPUT_SOURCE_PORT \
  -e INPUT_SOURCE_PRIVATE_KEY \
  -e INPUT_DEST_PORT \
  -e INPUT_DEST_PRIVATE_KEY \
  -e INPUT_SLACK_WEBHOOK \
  -e INPUT_DINGTALK_WEBHOOK \
  -e INPUT_LARK_WEBHOOK \
  gigrator/mirror-git:0.0.9

LICENSE

MIT