diff --git a/tools/copybara/config/copy.bara.sky b/tools/copybara/config/copy.bara.sky new file mode 100644 index 0000000..b70ad29 --- /dev/null +++ b/tools/copybara/config/copy.bara.sky @@ -0,0 +1,41 @@ +sourceUrlGitHub = "git@github.com:mcmillen/sneak-private.git" +destinationUrlGitHub = "git@github.com:mcmillen/sneak.git" + +sourceUrlGitea = "git@git.semicolin.games:colin/sneak-private.git" +destinationUrlGitea = "git@git.semicolin.games:colin/sneak.git" + +files = ["README.md", "tools/**", "Shared/**", "SharedTests/**", "Jumpy.Shared/**"] + +core.workflow( + name = "github", + mode = "ITERATIVE", + origin = git.origin( + url = sourceUrlGitHub, + ref = "master", + ), + destination = git.destination( + url = destinationUrlGitHub, + fetch = "master", + push = "master", + ), + origin_files = glob(files), + authoring = authoring.pass_thru("Unknown Author "), +) + +core.workflow( + name = "gitea", + mode = "ITERATIVE", + origin = git.origin( + url = sourceUrlGitea, + ref = "master", + ), + destination = git.destination( + url = destinationUrlGitea, + fetch = "master", + push = "master", + ), + origin_files = glob(files), + authoring = authoring.pass_thru("Unknown Author "), +) + +