mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 12:59:03 +02:00
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:
parent
2bfbdd633c
commit
45a7fd9c18
25
.github/workflows/mirror.yml
vendored
Normal file
25
.github/workflows/mirror.yml
vendored
Normal 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"
|
Loading…
Reference in New Issue
Block a user