Disable codeberg

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2022-10-03 16:57:34 +01:00
parent 07ad60f40d
commit 13fbaf6cc2
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78

View File

@ -72,7 +72,7 @@ for REPO in ${REPOS}; do
git remote add github "${GITHUB_BASE}${REPO}" 1> /dev/null
git remote add bitbucket "${BITBUCKET_BASE}${REPO}" 1> /dev/null
git remote add gitlab "${GITLAB_BASE}$(echo ${REPO} |tr "." "-")" 1> /dev/null
git remote add codeberg "${CODEBERG_BASE}${REPO}" 1> /dev/null
# git remote add codeberg "${CODEBERG_BASE}${REPO}" 1> /dev/null
failed() {
printf "\n⚠ Failed to sync ${REPO} to ${1}\n\n"
@ -84,18 +84,18 @@ for REPO in ${REPOS}; do
githubGetRepo ${REPO} || githubMakeRepo ${REPO}
gitlabGetRepo ${REPO} || gitlabMakeRepo ${REPO}
bitbucketGetRepo ${REPO} || bitbucketMakeRepo ${REPO}
codebergGetRepo ${REPO} || codebergMakeRepo ${REPO}
# codebergGetRepo ${REPO} || codebergMakeRepo ${REPO}
git pull --ff-only gitea ${BRANCH} 1> /dev/null || { failed; continue; }
git pull --ff-only github ${BRANCH} 1> /dev/null || printf "\n Unable to pull from GitHub\n\n"
git pull --ff-only bitbucket ${BRANCH} 1> /dev/null || printf "\n Unable to pull from BitBucket\n\n"
git pull --ff-only gitlab ${BRANCH} 1> /dev/null || printf "\n Unable to pull from Gitlab\n\n"
git pull --ff-only codeberg ${BRANCH} 1> /dev/null || printf "\n Unable to pull from Codeberg\n\n"
# git pull --ff-only codeberg ${BRANCH} 1> /dev/null || printf "\n Unable to pull from Codeberg\n\n"
git push -f --set-upstream github ${BRANCH} 1> /dev/null || { failed "github"; }
git push -f --set-upstream bitbucket ${BRANCH} 1> /dev/null || { failed "bitbucket"; }
git push -f --set-upstream gitlab ${BRANCH} 1> /dev/null || { failed "gitlab"; }
git push -f --set-upstream codeberg ${BRANCH} 1> /dev/null || { failed "codeberg"; }
# git push -f --set-upstream codeberg ${BRANCH} 1> /dev/null || { failed "codeberg"; }
git push --set-upstream gitea ${BRANCH} 1> /dev/null || { failed "gitea"; }
cd ..