Add gitea pushing as soft-migration

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-11-27 17:59:58 +01:00
parent cfecce76db
commit cdbe10e266
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -26,7 +26,8 @@ git config user.email "jenkins@luzifer.io"
git config user.name "Luzifer.io Jenkins" git config user.name "Luzifer.io Jenkins"
# Add Repo as remote # Add Repo as remote
git remote add origin "git@github.com:luzifer-arch/${PKG}.git" git remote add origin "https://luzifer:${GITEA_TOKEN}@git.luzifer.io/luzifer-arch/${PKG}.git"
git remote add github "git@github.com:luzifer-arch/${PKG}.git"
# Get latest state of remote # Get latest state of remote
git fetch --all --tags git fetch --all --tags
@ -61,5 +62,6 @@ docker run --rm -i \
--ulimit nofile=262144:262144 \ --ulimit nofile=262144:262144 \
luzifer/arch-repo-builder:latest luzifer/arch-repo-builder:latest
# Push changes including tags to fork # Push changes to gitea and if that's blocked to github
git push origin master git push origin master ||
git push github master