mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:41:09 +02:00
Forgejo runner has no macOS binary — Docker-based runner can't access host filesystem/SSH needed for CD. GitHub CD via native self-hosted runner handles all deployments. Forgejo remains a push-mirror for backup and visibility. - Remove .forgejo/workflows/cd-macmini.yml - Remove forgejo-runner service from docker-compose - Update mirror workflow comments Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
832 B
YAML
27 lines
832 B
YAML
# Mirror GitHub → Forgejo on every push to main
|
|
# Keeps Forgejo in sync as a backup/visibility mirror.
|
|
# GitHub handles CI/CD via native self-hosted runner; Forgejo is mirror-only.
|
|
#
|
|
# Requires: Mac Mini self-hosted runner with SSH access to Forgejo (localhost:2222)
|
|
|
|
name: Mirror to Forgejo
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
mirror:
|
|
name: Push to Forgejo
|
|
runs-on: self-hosted
|
|
steps:
|
|
- name: Mirror to Forgejo via SSH
|
|
run: |
|
|
cd /Users/mana/projects/manacore-monorepo
|
|
|
|
git pull origin main
|
|
|
|
# Push to Forgejo via localhost SSH (runner is on the Mac Mini)
|
|
GIT_SSH_COMMAND='ssh -p 2222 -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no' \
|
|
git push ssh://git@localhost:2222/till/manacore-monorepo.git main 2>&1
|
|
echo "Mirrored to Forgejo"
|