summaryrefslogtreecommitdiff
path: root/meta-raspberrypi/.github/workflows/mirror.yml
diff options
context:
space:
mode:
Diffstat (limited to 'meta-raspberrypi/.github/workflows/mirror.yml')
-rw-r--r--meta-raspberrypi/.github/workflows/mirror.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta-raspberrypi/.github/workflows/mirror.yml b/meta-raspberrypi/.github/workflows/mirror.yml
new file mode 100644
index 0000000000..11bb185c15
--- /dev/null
+++ b/meta-raspberrypi/.github/workflows/mirror.yml
@@ -0,0 +1,22 @@
+# SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com>
+#
+# SPDX-License-Identifier: MIT
+
+name: Mirrors
+
+on: [ push, delete, create ]
+
+concurrency:
+ group: git-mirror-me
+
+jobs:
+ yocto-mirror:
+ name: Yocto Git Mirror
+ runs-on: [self-hosted, Linux]
+ steps:
+ - uses: agherzan/git-mirror-me-action@v1.0.0
+ env:
+ SSH_PRIVATE_KEY: ${{ secrets.YOCTO_META_RASPBERRYPI_SSH_PRIVATE_KEY }}
+ SSH_KNOWN_HOSTS: ${{ secrets.YOCTO_META_RASPBERRYPI_SSH_KNOWN_HOSTS }}
+ with:
+ destination-repository: "git@push.yoctoproject.org:meta-raspberrypi"