feat: setup script to sync repos #114

Merged
silver merged 8 commits from #50_mirror_using_gitlab.com into main 2023-12-27 22:22:17 +00:00
2 changed files with 14 additions and 3 deletions
Showing only changes of commit 225033130c - Show all commits

View file

@ -1,3 +1,13 @@
id_local, remote_url
4,https://gitlab.com/compsoc1/skynet/nixos.git
9,https://gitlab.com/compsoc1/skynet/ldap/backend.git
4, https://gitlab.com/compsoc1/skynet/nixos.git
9, https://gitlab.com/compsoc1/skynet/ldap/backend.git
10, https://gitlab.com/compsoc1/skynet/ldap/frontend.git
13, https://gitlab.com/compsoc1/skynet/website/2023.git
14, https://gitlab.com/compsoc1/skynet/website/2016.git
17, https://gitlab.com/compsoc1/skynet/website/alumni-renew.git
18, https://gitlab.com/compsoc1/compsoc/constitution.git
20, https://gitlab.com/compsoc1/compsoc/presentations/presentations.git
21, https://gitlab.com/compsoc1/skynet/discord-bot.git
22, https://gitlab.com/compsoc1/skynet/scripts.git
29, https://gitlab.com/compsoc1/skynet/website/games.skynet.ie.git
44, https://gitlab.com/compsoc1/compsoc/presentations/python_catchup.git

1 id_local remote_url
2 4 https://gitlab.com/compsoc1/skynet/nixos.git
3 9 https://gitlab.com/compsoc1/skynet/ldap/backend.git
4 10 https://gitlab.com/compsoc1/skynet/ldap/frontend.git
5 13 https://gitlab.com/compsoc1/skynet/website/2023.git
6 14 https://gitlab.com/compsoc1/skynet/website/2016.git
7 17 https://gitlab.com/compsoc1/skynet/website/alumni-renew.git
8 18 https://gitlab.com/compsoc1/compsoc/constitution.git
9 20 https://gitlab.com/compsoc1/compsoc/presentations/presentations.git
10 21 https://gitlab.com/compsoc1/skynet/discord-bot.git
11 22 https://gitlab.com/compsoc1/skynet/scripts.git
12 29 https://gitlab.com/compsoc1/skynet/website/games.skynet.ie.git
13 44 https://gitlab.com/compsoc1/compsoc/presentations/python_catchup.git

View file

@ -26,8 +26,9 @@ Mirror-Create(){
local body="url=https://oauth2:$token_remote@$REPO&enabled=true&only_protected_branches=false&keep_divergent_refs=false"
local uri="https://gitlab.skynet.ie/api/v4/projects/$id/remote_mirrors"
echo $uri
local tmp=""
curl -s -X "POST" "$uri" --header "PRIVATE-TOKEN: $token" --data $body
# to put output on a new line
echo ""
}
Main() {