ci: Add git mirror workflow

This will resume syncing the Yocto git repository with the GitHub one.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
This commit is contained in:
Andrei Gherzan 2022-02-22 22:16:48 +01:00
parent 2bfbdd633c
commit 45a7fd9c18
No known key found for this signature in database
GPG Key ID: 73BBE86B7E7AB7CF

25
.github/workflows/mirror.yml vendored Normal file
View File

@ -0,0 +1,25 @@
# 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: 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"