mirror of
https://github.com/EpicMorg/.github.git
synced 2025-07-31 17:21:33 +03:00
mirrors list
This commit is contained in:
parent
25d03cacb9
commit
1976115262
41
.github/workflows/sync-with-gitlab.yml
vendored
41
.github/workflows/sync-with-gitlab.yml
vendored
@ -1,41 +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/EpicMorg/.github.git", gitlab: "git@gitlab.com:EpicMorg/dot-github.git"}
|
|
||||||
- {github: "https://github.com/EpicMorg/atlassian-downloader.git" , gitlab: "git@gitlab.com:EpicMorg/atlassian-downloader.git"}
|
|
||||||
- {github: "https://github.com/EpicMorg/atlassian-json.git" , gitlab: "git@gitlab.com:EpicMorg/atlassian-json.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 --force
|
|
57
.github/workflows/sync-with-mirrors.yml
vendored
Normal file
57
.github/workflows/sync-with-mirrors.yml
vendored
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
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/EpicMorg/.github.git", bitbucket: "git@bitbucket.org:epicmorg/.github.git", codeberg: "git@codeberg.org:EpicMorg/.github.git", gitlab: "git@gitlab.com:EpicMorg/dot-github.git"}
|
||||||
|
- {github: "https://github.com/EpicMorg/docker.git", bitbucket: "git@bitbucket.org:epicmorg/docker.git", codeberg: "git@codeberg.org:EpicMorg/docker.git", gitlab: "git@gitlab.com:EpicMorg/docker.git" }
|
||||||
|
- {github: "https://github.com/EpicMorg/atlassian-downloader.git", bitbucket: "git@bitbucket.org:epicmorg/atlassian-downloader.git", codeberg: "git@codeberg.org:EpicMorg/atlassian-downloader.git", gitlab: "git@gitlab.com:EpicMorg/atlassian-downloader.git"}
|
||||||
|
- {github: "https://github.com/EpicMorg/atlassian-json.git", bitbucket: "git@bitbucket.org:epicmorg/atlassian-json.git", codeberg: "git@codeberg.org:EpicMorg/atlassian-json.git", gitlab: "git@gitlab.com:EpicMorg/atlassian-json.git"}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set up SSH key
|
||||||
|
env:
|
||||||
|
SSH_PRIVATE_KEY: ${{ secrets.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
|
@ -8,3 +8,10 @@ Some sescription here
|
|||||||
|
|
||||||
> [!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
> Some inportant info.
|
> Some inportant info.
|
||||||
|
|
||||||
|
## Mirrors:
|
||||||
|
- https://github.com/EpicMorg
|
||||||
|
- https://gitlab.com/EpicMorg
|
||||||
|
- https://codeberg.org/EpicMorg
|
||||||
|
- https://bitbucket.org/EpicMorg
|
||||||
|
- https://git.epicm.org/EpicMorg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user