mirror 레포 도입

This commit is contained in:
Lectom C Han
2025-12-19 15:10:26 +09:00
parent 73a4a286c2
commit 34eea87207
6 changed files with 78 additions and 17 deletions

View File

@@ -23,7 +23,13 @@ jobs:
mkdir -p ~/.ssh
echo "${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -p 22 172.16.42.118 >> ~/.ssh/known_hosts
ssh-keyscan -p 22 172.16.10.191 >> ~/.ssh/known_hosts
- name: Refresh source mirror repositories (git fetch --mirror)
run: |
set -euo pipefail
echo "Refreshing mirror repos on 172.16.10.191 ..."
ssh engdev@172.16.10.191 'set -euo pipefail; shopt -s nullglob; for repo in */.git; do dir="${repo%/.git}"; echo "Updating ${dir}"; (cd "${dir}" && git fetch --mirror --prune); done'
- name: Mirror Branches
env: