From 45a7fd9c1874b791dc46aa2b025d337f29f38522 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Tue, 22 Feb 2022 22:16:48 +0100 Subject: [PATCH] ci: Add git mirror workflow This will resume syncing the Yocto git repository with the GitHub one. Signed-off-by: Andrei Gherzan --- .github/workflows/mirror.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..2168940 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,25 @@ +# SPDX-FileCopyrightText: Andrei Gherzan +# +# 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: actions/checkout@v2 + with: + fetch-depth: '0' + - uses: agherzan/git-mirror-me-action@main + 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"