feat(ci): GitHub→Forgejo mirror + Forgejo CD pulls from forgejo remote

- .github/workflows/mirror-to-forgejo.yml: on push to main, runner on Mac Mini
  pushes to Forgejo via local SSH (localhost:2222). Keeps Forgejo in sync.
- .forgejo/workflows/cd-macmini.yml: deploy step now pulls from forgejo remote
  (ssh://localhost:2222) instead of GitHub origin.

Flow: local → git push origin main → GitHub → mirror-to-forgejo runs on Mac Mini
      → pushes to Forgejo → Forgejo CD pipeline → deploys containers

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-30 19:32:16 +02:00
parent abb7712749
commit 0968c84eb4
2 changed files with 30 additions and 1 deletions

View file

@ -174,7 +174,8 @@ jobs:
- name: Pull latest code
run: |
cd "${{ env.PROJECT_DIR }}"
git pull origin main
GIT_SSH_COMMAND='ssh -p 2222 -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no' \
git pull forgejo main
- name: Init deploy tracking
id: init