mirror of
https://github.com/luzifer-aur/scripts.git
synced 2024-12-20 20:01:20 +00:00
Add gitea pushing as soft-migration
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
cfecce76db
commit
cdbe10e266
1 changed files with 5 additions and 3 deletions
|
@ -26,7 +26,8 @@ git config user.email "jenkins@luzifer.io"
|
|||
git config user.name "Luzifer.io Jenkins"
|
||||
|
||||
# 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
|
||||
git fetch --all --tags
|
||||
|
@ -61,5 +62,6 @@ docker run --rm -i \
|
|||
--ulimit nofile=262144:262144 \
|
||||
luzifer/arch-repo-builder:latest
|
||||
|
||||
# Push changes including tags to fork
|
||||
git push origin master
|
||||
# Push changes to gitea and if that's blocked to github
|
||||
git push origin master ||
|
||||
git push github master
|
||||
|
|
Loading…
Reference in a new issue