From ccc8b8b26f49cc05f6a74dff23150e4f370178f5 Mon Sep 17 00:00:00 2001 From: STAM Date: Sun, 6 Apr 2025 15:23:13 +0300 Subject: [PATCH] sync git mirrors added bitbucket added codeberg --- .github/workflows/sync-with-gitlab.yml | 52 ------------------- .github/workflows/sync-with-mirrors.yml | 68 +++++++++++++++++++++++++ profile/README.md | 13 +++-- 3 files changed, 77 insertions(+), 56 deletions(-) delete mode 100644 .github/workflows/sync-with-gitlab.yml create mode 100644 .github/workflows/sync-with-mirrors.yml diff --git a/.github/workflows/sync-with-gitlab.yml b/.github/workflows/sync-with-gitlab.yml deleted file mode 100644 index 4401174..0000000 --- a/.github/workflows/sync-with-gitlab.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/sync-with-mirrors.yml b/.github/workflows/sync-with-mirrors.yml new file mode 100644 index 0000000..d2bc1f6 --- /dev/null +++ b/.github/workflows/sync-with-mirrors.yml @@ -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 diff --git a/profile/README.md b/profile/README.md index 6fff0f8..b5bcf50 100644 --- a/profile/README.md +++ b/profile/README.md @@ -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.

- GitHub Org's stars - - + GitHub Org's stars +

@@ -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