sneak/tools/copybara/config/copy.bara.sky
Colin McMillen faa45d6fea add new URLs to copybara config
GitOrigin-RevId: 0a4d6916519cd4b5e1b3e7d2c51664f15e6f6adf
2020-02-14 00:28:54 -05:00

42 lines
1.1 KiB
Plaintext

sourceUrlGitHub = "git@github.com:mcmillen/sneak-private.git"
destinationUrlGitHub = "git@github.com:mcmillen/sneak.git"
sourceUrlGitea = "git@git.semicolin.games:semicolin/sneak-private.git"
destinationUrlGitea = "git@git.semicolin.games:semicolin/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 <nobody@semicolin.games>"),
)
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 <nobody@semicolin.games>"),
)