mirror 레포 도입
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user