sync git mirrors

added bitbucket
added codeberg
This commit is contained in:
STAM 2025-04-06 15:23:13 +03:00
parent 300e468b61
commit ccc8b8b26f
No known key found for this signature in database
GPG Key ID: 711526C6938897F1
3 changed files with 77 additions and 56 deletions

View File

@ -1,52 +0,0 @@
name: Automatic sync with GitLab's read-only mirror
on:
push:
branches:
- main
schedule:
- cron: '42 0 * * 0'
workflow_dispatch:
jobs:
mirror:
runs-on: ubuntu-latest
strategy:
matrix:
repo:
- {github: "https://github.com/rehlds/.github.git", gitlab: "git@gitlab.com:rehlds/dot-github.git"}
- {github: "https://github.com/rehlds/rehlds.git", gitlab: "git@gitlab.com:rehlds/rehlds.git"}
- {github: "https://github.com/rehlds/ReGameDLL_CS.git", gitlab: "git@gitlab.com:rehlds/ReGameDLL_CS.git"}
- {github: "https://github.com/rehlds/metamod-r.git", gitlab: "git@gitlab.com:rehlds/metamod-r.git"}
- {github: "https://github.com/rehlds/reapi.git", gitlab: "git@gitlab.com:rehlds/reapi.git"}
- {github: "https://github.com/rehlds/rechecker.git", gitlab: "git@gitlab.com:rehlds/rechecker.git"}
- {github: "https://github.com/rehlds/resemiclip.git", gitlab: "git@gitlab.com:rehlds/resemiclip.git"}
- {github: "https://github.com/rehlds/reunion.git", gitlab: "git@gitlab.com:rehlds/reunion.git"}
- {github: "https://github.com/rehlds/revoice.git", gitlab: "git@gitlab.com:rehlds/revoice.git"}
- {github: "https://github.com/rehlds/relocalizebugfix.git", gitlab: "git@gitlab.com:rehlds/relocalizebugfix.git"}
- {github: "https://github.com/rehlds/hitboxtracker.git", gitlab: "git@gitlab.com:rehlds/hitboxtracker.git"}
- {github: "https://github.com/rehlds/testdemos.git", gitlab: "git@gitlab.com:rehlds/testdemos.git"}
- {github: "https://github.com/rehlds/rehlds.github.io.git", gitlab: "git@gitlab.com:rehlds/rehlds.github.io.git"}
- {github: "https://github.com/rehlds/metamod-r.org.git", gitlab: "git@gitlab.com:rehlds/metamod-r.org.git"}
steps:
- name: Set up SSH key
env:
SSH_PRIVATE_KEY: ${{ secrets.GITLAB_DEPLOY_KEY }}
run: |
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -t rsa,ed25519 github.com >> ~/.ssh/known_hosts
ssh-keyscan -t rsa,ed25519 gitlab.com >> ~/.ssh/known_hosts
- name: Clone repository as mirror
run: |
git clone --mirror ${{ matrix.repo.github }} repo-mirror
- name: Push to GitLab
run: |
cd repo-mirror
git remote set-url origin ${{ matrix.repo.gitlab }}
git push --mirror

68
.github/workflows/sync-with-mirrors.yml vendored Normal file
View File

@ -0,0 +1,68 @@
name: Automatic sync with read-only mirrors
on:
push:
branches:
- main
schedule:
- cron: '42 0 * * 0'
workflow_dispatch:
jobs:
mirror:
runs-on: ubuntu-latest
strategy:
matrix:
repo:
# - {github: "", bitbucket: "", codeberg: "", gitlab: "" }
- {github: "https://github.com/rehlds/.github.git", bitbucket: "git@bitbucket.org:rehlds-dev/.github.git", codeberg: "git@codeberg.org:reHLDS/.github.git", gitlab: "git@gitlab.com:rehlds/dot-github.git"}
- {github: "https://github.com/rehlds/rehlds.git", bitbucket: "git@bitbucket.org:rehlds-dev/rehlds.git", codeberg: "git@codeberg.org:reHLDS/rehlds.git", gitlab: "git@gitlab.com:rehlds/rehlds.git"}
- {github: "https://github.com/rehlds/ReGameDLL_CS.git", bitbucket: "git@bitbucket.org:rehlds-dev/regamedll_cs.git", codeberg: "git@codeberg.org:reHLDS/ReGameDLL_CS.git", gitlab: "git@gitlab.com:rehlds/ReGameDLL_CS.git"}
- {github: "https://github.com/rehlds/metamod-r.git", bitbucket: "git@bitbucket.org:rehlds-dev/metamod-r.git", codeberg: "git@codeberg.org:reHLDS/metamod-r.git", gitlab: "git@gitlab.com:rehlds/metamod-r.git"}
- {github: "https://github.com/rehlds/reapi.git", bitbucket: "git@bitbucket.org:rehlds-dev/reapi.git", codeberg: "git@codeberg.org:reHLDS/reapi.git", gitlab: "git@gitlab.com:rehlds/reapi.git"}
- {github: "https://github.com/rehlds/rechecker.git", bitbucket: "git@bitbucket.org:rehlds-dev/rechecker.git", codeberg: "git@codeberg.org:reHLDS/rechecker.git", gitlab: "git@gitlab.com:rehlds/rechecker.git"}
- {github: "https://github.com/rehlds/resemiclip.git", bitbucket: "git@bitbucket.org:rehlds-dev/resemiclip.git", codeberg: "git@codeberg.org:reHLDS/resemiclip.git", gitlab: "git@gitlab.com:rehlds/resemiclip.git"}
- {github: "https://github.com/rehlds/reunion.git", bitbucket: "git@bitbucket.org:rehlds-dev/reunion.git", codeberg: "git@codeberg.org:reHLDS/reunion.git", gitlab: "git@gitlab.com:rehlds/reunion.git"}
- {github: "https://github.com/rehlds/revoice.git", bitbucket: "git@bitbucket.org:rehlds-dev/revoice.git", codeberg: "git@codeberg.org:reHLDS/revoice.git", gitlab: "git@gitlab.com:rehlds/revoice.git"}
- {github: "https://github.com/rehlds/relocalizebugfix.git", bitbucket: "git@bitbucket.org:rehlds-dev/relocalizebugfix.git", codeberg: "git@codeberg.org:reHLDS/relocalizebugfix.git", gitlab: "git@gitlab.com:rehlds/relocalizebugfix.git"}
- {github: "https://github.com/rehlds/hitboxtracker.git", bitbucket: "git@bitbucket.org:rehlds-dev/hitboxtracker.git", codeberg: "git@codeberg.org:reHLDS/hitboxtracker.git", gitlab: "git@gitlab.com:rehlds/hitboxtracker.git"}
- {github: "https://github.com/rehlds/testdemos.git", bitbucket: "git@bitbucket.org:rehlds-dev/testdemos.git", codeberg: "git@codeberg.org:reHLDS/testdemos.git", gitlab: "git@gitlab.com:rehlds/testdemos.git"}
- {github: "https://github.com/rehlds/rehlds.github.io.git", bitbucket: "git@bitbucket.org:rehlds-dev/rehlds.github.io.git", codeberg: "git@codeberg.org:reHLDS/rehlds.github.io.git", gitlab: "git@gitlab.com:rehlds/rehlds.github.io.git"}
- {github: "https://github.com/rehlds/metamod-r.org.git", bitbucket: "git@bitbucket.org:rehlds-dev/metamod-r.org.git", codeberg: "git@codeberg.org:reHLDS/metamod-r.org.git", gitlab: "git@gitlab.com:rehlds/metamod-r.org.git"}
- {github: "https://github.com/rehlds/metamod-r-game-tests.git", bitbucket: "git@bitbucket.org:rehlds-dev/metamod-r-game-tests.git", codeberg: "git@codeberg.org:reHLDS/metamod-r-game-tests.git", gitlab: "git@gitlab.com:rehlds/metamod-r-game-tests.git"}
steps:
- name: Set up SSH key
env:
SSH_PRIVATE_KEY: ${{ secrets.GITLAB_DEPLOY_KEY }}
run: |
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -t rsa,ed25519 bitbucket.org >> ~/.ssh/known_hosts
ssh-keyscan -t rsa,ed25519 codeberg.org >> ~/.ssh/known_hosts
ssh-keyscan -t rsa,ed25519 github.com >> ~/.ssh/known_hosts
ssh-keyscan -t rsa,ed25519 gitlab.com >> ~/.ssh/known_hosts
- name: Clone repository as mirror
run: |
git clone --mirror ${{ matrix.repo.github }} repo-mirror
- name: Push to BitBucket
run: |
cd repo-mirror
git remote set-url origin ${{ matrix.repo.bitbucket }}
git push --mirror --force
- name: Push to CodeBerg
run: |
cd repo-mirror
git remote set-url origin ${{ matrix.repo.codeberg }}
git push --mirror --force
- name: Push to GitLab
run: |
cd repo-mirror
git remote set-url origin ${{ matrix.repo.gitlab }}
git push --mirror --force

View File

@ -5,10 +5,8 @@
> The ReHLDS organization is currently undergoing reconstruction. Please be aware that certain projects may be in transition, and updates may be in progress. We appreciate your understanding and patience during this time.
<p align="left">
<a href="https://github.com/orgs/rehlds/repositories"><img alt="GitHub Org's stars" src="https://img.shields.io/github/stars/rehlds?style=flat-square"></a>
<a href="https://t.me/ReHLDS_Community">
<img
src="https://img.shields.io/endpoint?label=Telegram&style=flat-square&url=https%3A%2F%2Fmogyo.ro%2Fquart-apis%2Ftgmembercount%3Fchat_id%3DReHLDS_Community"></a>
<a href="https://github.com/orgs/rehlds/repositories"><img alt="GitHub Org's stars" src="https://img.shields.io/github/stars/rehlds?style=flat-square"/></a>
<a href="https://t.me/ReHLDS_Community"><img src="https://img.shields.io/badge/any_text-Join-blue?style=flat-square&label=Telegram" /></a>
</p>
<p>
@ -128,3 +126,10 @@ The HLDS reverse-engineering community is dedicated to improving Half-Life Dedic
- Improving HLDS compatibility and support
- Improving overall functionality and reliability
- Introducing new features and functionality.
### Our Read-only mirrors outside GitHub:
- https://bitbucket.org/rehlds-dev
- https://codeberg.org/reHLDS
- https://git.epicm.org/reHLDS
- https://gitlab.com/reHLDS