[vcs/deploy] Create the mirror actions

This commit is contained in:
Anas Elgarhy 2023-05-12 00:09:44 +03:00
parent 973dfbb489
commit 72823efc04
No known key found for this signature in database
GPG key ID: 0501802A1D496528
7 changed files with 119 additions and 0 deletions

17
.github/workflows/bitbucket-mirror.yml vendored Normal file
View file

@ -0,0 +1,17 @@
name: Mirror the repo to bitbucket
on: [push]
jobs:
bitbucket-mirror:
runs-on: ubuntu-latest
steps:
- name: mirror in bitbucket
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: yesolutions/mirror-action@v0.6.0
with:
REMOTE: 'https://anas-elgarhy@bitbucket.org/archy-linux/archy-slstatus.git'
REMOTE_NAME: bitbucket
GIT_USERNAME: anas-elgarhy
GIT_PASSWORD: ${{ secrets.BITBUCKET_TOKEN }}

17
.github/workflows/codeberg-mirror.yml vendored Normal file
View file

@ -0,0 +1,17 @@
name: Mirror the repo to codeberg
on: [push]
jobs:
codeberg-mirror:
runs-on: ubuntu-latest
steps:
- name: mirror in codeberg
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: yesolutions/mirror-action@v0.6.0
with:
REMOTE: 'https://codeberg.org/archy-linux/archy-slstatus.git'
REMOTE_NAME: codeberg
GIT_USERNAME: anas-elgarhy
GIT_PASSWORD: ${{ secrets.CODEBERG_TOKEN }}

17
.github/workflows/disroot-mirror.yml vendored Normal file
View file

@ -0,0 +1,17 @@
name: Mirror the repo to disroot
on: [push]
jobs:
disroot-mirror:
runs-on: ubuntu-latest
steps:
- name: mirror in git.disroot
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: yesolutions/mirror-action@v0.6.0
with:
REMOTE: 'https://git.disroot.org/archy-linux/archy-slstatus.git'
REMOTE_NAME: disroot
GIT_USERNAME: anas-elgarhy
GIT_PASSWORD: ${{ secrets.DISROOT_TOKEN }}

17
.github/workflows/gitdab-mirror.yml vendored Normal file
View file

@ -0,0 +1,17 @@
name: Mirror the repo to Gitdab
on: [ push ]
jobs:
gitdab-mirror:
runs-on: ubuntu-latest
steps:
- name: mirror in Gitdab
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: yesolutions/mirror-action@v0.6.0
with:
REMOTE: 'https://gitdab.com/archy-linux/archy-slstatus.git'
REMOTE_NAME: gitdab
GIT_USERNAME: anas-elgarhy
GIT_PASSWORD: ${{ secrets.GITDAB_TOKEN }}

17
.github/workflows/gitea-mirror.yml vendored Normal file
View file

@ -0,0 +1,17 @@
name: Mirror the repo to Gitea
on: [ push ]
jobs:
gitea-mirror:
runs-on: ubuntu-latest
steps:
- name: mirror in Gitea
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: yesolutions/mirror-action@v0.6.0
with:
REMOTE: 'https://gitea.com/archy-linux/archy-slstatus.git'
REMOTE_NAME: gitea
GIT_USERNAME: anas-elgarhy
GIT_PASSWORD: ${{ secrets.GITEA_TOKEN }}

16
.github/workflows/gitlab-mirror.yml vendored Normal file
View file

@ -0,0 +1,16 @@
name: Mirror the repo to gitlab
on: [push]
jobs:
gitlab-mirror:
runs-on: ubuntu-latest
steps:
- name: mirror in gitlab
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: yesolutions/mirror-action@v0.6.0
with:
REMOTE: 'https://gitlab.com/archy-linux/archy-slstatus.git'
GIT_USERNAME: Anas-Elgarhy
GIT_PASSWORD: ${{ secrets.GITLAP_TOKEN }}

18
.github/workflows/pagure-mirror.yml vendored Normal file
View file

@ -0,0 +1,18 @@
name: Mirror the repo to pagure
on: [ push ]
jobs:
pagure-mirror:
runs-on: ubuntu-latest
steps:
- name: mirror in pagure
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: yesolutions/mirror-action@v0.6.0
with:
REMOTE: 'https://pagure.io/archy-linux/archy-slstatus.git'
REMOTE_NAME: pagure
GIT_USERNAME: anas-elgarhy
GIT_PASSWORD: ${{ secrets.PAGURE_TOKEN }}