mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-20 00:41:26 +02:00
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:
parent
abb7712749
commit
0968c84eb4
2 changed files with 30 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue