Files
goSSS-front/.gitea/workflows/mirror-to-backend.yml
SERTY 64d5235e26
Some checks failed
Mirror frontend to backend repo / mirror (push) Failing after 1s
14.12.25 - фикс пайплайна CI #1
2025-12-14 03:12:27 +03:00

45 lines
1.0 KiB
YAML

name: Mirror frontend to backend repo
on:
push:
branches:
- main
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Setup SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SUBTREE_SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -p 2222 10.25.100.250 >> ~/.ssh/known_hosts
- name: Clone backend monorepo
run: |
git clone ssh://git@10.25.100.250:2222/serty/goSSS.git
cd goSSS
git checkout main
git config user.name "gitea-ci"
git config user.email "ci@gitea"
- name: Add frontend remote
run: |
cd goSSS
git remote add front ssh://git@10.25.100.250:2222/serty/goSSS-front.git
- name: Subtree pull frontend
run: |
cd goSSS
git subtree pull \
--prefix=front-ui \
front main \
--squash
- name: Push to backend repo
run: |
cd goSSS
git push origin main