-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Description
Set up an automated mirror of the Komunumo repository’s source code for the main branch to two external Git servers using the GitHub Action from yesolutions:
- Action: https://github.com/yesolutions/mirror-action
- Targets:
The mirror should run automatically on every push to main (and allow manual triggering), push only the main branch, and not attempt to sync other branches, issues, PRs, releases, or other GitHub-native artifacts.
Requirements
- Use the
yesolutions/mirror-actionto mirror only themainbranch. - Configure two separate mirror targets (
codeberg.organdgit.fihlon.swiss). - Prefer SSH authentication with separate deploy keys per target for least privilege:
- Add public keys to the target repositories with write permissions.
- Store private keys as GitHub secrets (e.g.,
MIRROR_CODEBERG_SSH_KEY,MIRROR_FIHLON_SSH_KEY).
- Ensure host verification is handled (known hosts or equivalent secure configuration).
- Preserve commit authorship and timestamps.
- Provide a manual dispatch to re-run the mirror if needed (e.g., after target maintenance).
Acceptance Criteria
- A GitHub Actions workflow exists that uses
yesolutions/mirror-action. - The workflow triggers on
pushtomainand via manual dispatch. - Only the
mainbranch is mirrored to bothcodeberg.organdgit.fihlon.swiss. - SSH keys are configured via GitHub secrets; public keys are installed on both targets with write access.
- The mirror completes successfully to both targets and is verifiable by checking the latest commit on
main. - No issues/PRs/releases are mirrored; only repository code/commits for
main(and no ther branches). - Basic security is in place: host key verification is enabled or an equivalent secure method is documented.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
hackergartenGood for hackergarten eventsGood for hackergarten events
Projects
Status
Ready