Commit 278dda9f authored by Tino Goratsch's avatar Tino Goratsch

Add gitsubtree split

parent 32508255
Pipeline #15431297 failed with stage
in 44 seconds
# .gitlabci.yml with Docker runners
stages:
- split
split:
image: jderusse/gitsplit
stage: split
cache:
key: "$CI_JOB_NAME/$CI_COMMIT_REF_NAME"
paths:
- /.gitsplit-cache
variables:
GIT_STRATEGY: clone
before_script:
- eval $(ssh-agent -s)
- mkdir -p ~/.ssh
- 'echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- ssh-add -l
script:
- git config remote.origin.fetch "+refs/*:refs/*"
- git config remote.origin.mirror true
- git fetch
- gitsplit
\ No newline at end of file
# Used to speed up the split over time by reusing git's objects
cache_dir: "./.gitsplit-cache"
# Path to the repository to split (default = current path)
project_dir: ~
# List of splits.
splits:
- prefix: "ACP3/Core"
target: "https://${GH_TOKEN}@gitlab.com/ACP3/core.git"
# List of references to split (defined as regexp)
origins:
- ^master$
- ^develop$
- ^feature/
- ^v\d+\.\d+\.\d+$
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment