aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/mirror.yml
diff options
context:
space:
mode:
authorarf20 <aruizfernandez05@gmail.com>2024-02-24 23:57:48 +0100
committerarf20 <aruizfernandez05@gmail.com>2024-02-24 23:57:48 +0100
commitd6d47d99da3a3c5c14535fb5aba45624600c3b57 (patch)
treeca917af34a661362fa78de13b3e310d253020e32 /.github/workflows/mirror.yml
parent291156ae4a7ef65fae14e7f5ea1fd465e9d3d018 (diff)
downloadmail-conf-d6d47d99da3a3c5c14535fb5aba45624600c3b57.tar.gz
mail-conf-d6d47d99da3a3c5c14535fb5aba45624600c3b57.zip
Add git mirror actions workflow
Diffstat (limited to '.github/workflows/mirror.yml')
-rw-r--r--.github/workflows/mirror.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml
new file mode 100644
index 0000000..3b637e3
--- /dev/null
+++ b/.github/workflows/mirror.yml
@@ -0,0 +1,18 @@
+name: Mirror to ARFNET
+
+on: [push]
+
+env:
+ REMOTE_REPO: mail-conf
+ REMOTE_SERVER: git.arf20.com
+
+jobs:
+ push-mirror:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Clone repo
+ run: git clone https://github.com/${{ github.repository }}
+
+ - name: Push to remote repo
+ run: cd $REMOTE_REPO && git push -u https://${{ secrets.MIRROR_USER }}:${{ secrets.MIRROR_PASSWORD }}@$REMOTE_SERVER/$REMOTE_REPO master
+