feat: setup script to sync repos #114
2 changed files with 14 additions and 3 deletions
|
@ -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
|
||||
|
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue