From 1a3cc2dc4cd9a5621f86207d83c2045732c87131 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Thu, 13 Feb 2020 16:21:40 -0500 Subject: [PATCH] update copybara configs to include gitea GitOrigin-RevId: 4ef820b461a80b0b17dfe1d9d4800186437811f9 --- tools/copybara/copy.bara.sky | 34 +++++++++++++++++----------------- tools/copybara/copybara.sh | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tools/copybara/copy.bara.sky b/tools/copybara/copy.bara.sky index aa1c3d5..b70ad29 100644 --- a/tools/copybara/copy.bara.sky +++ b/tools/copybara/copy.bara.sky @@ -1,8 +1,8 @@ sourceUrlGitHub = "git@github.com:mcmillen/sneak-private.git" destinationUrlGitHub = "git@github.com:mcmillen/sneak.git" -sourceUrlGitLab = "git@gitlab.com:SemiColinGames/sneak.git" -destinationUrlGitLab = "git@gitlab.com:SemiColinGames/sneak-public.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/**"] @@ -22,20 +22,20 @@ core.workflow( authoring = authoring.pass_thru("Unknown Author "), ) -#core.workflow( -# name = "gitlab", -# mode = "ITERATIVE", -# origin = git.origin( -# url = sourceUrlGitLab, -# ref = "master", -# ), -# destination = git.destination( -# url = destinationUrlGitLab, -# 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 "), +) diff --git a/tools/copybara/copybara.sh b/tools/copybara/copybara.sh index f069eab..d018277 100644 --- a/tools/copybara/copybara.sh +++ b/tools/copybara/copybara.sh @@ -4,4 +4,4 @@ SCRIPT=$(readlink -f "$0") SCRIPTPATH=$(dirname "$SCRIPT") java -jar ~/bin/copybara_deploy.jar migrate $SCRIPTPATH/copy.bara.sky github -# java -jar ~/bin/copybara_deploy.jar migrate $SCRIPTPATH/copy.bara.sky gitlab +java -jar ~/bin/copybara_deploy.jar migrate $SCRIPTPATH/copy.bara.sky gitea