Merge pull request 'fix: git fetch 改用公网 URL 而非 origin,避免 Docker 内网地址不可达导致卡死' (#152) from develop into v2
All checks were successful
Deploy / deploy (push) Successful in 15s
All checks were successful
Deploy / deploy (push) Successful in 15s
Reviewed-on: http://8.161.227.145:3000/XEngineers/CamTalk/pulls/152
This commit was merged in pull request #152.
This commit is contained in:
@@ -10,10 +10,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: |
|
run: |
|
||||||
|
GIT_URL="http://8.161.227.145:3000/XEngineers/CamTalk.git"
|
||||||
if [ -d /root/camtalk/.git ]; then
|
if [ -d /root/camtalk/.git ]; then
|
||||||
cd /root/camtalk
|
cd /root/camtalk
|
||||||
git fetch origin ${GITHUB_REF_NAME} --depth=1
|
git fetch "$GIT_URL" ${GITHUB_REF_NAME} --depth=1
|
||||||
git reset --hard origin/${GITHUB_REF_NAME}
|
git reset --hard FETCH_HEAD
|
||||||
else
|
else
|
||||||
git clone --depth=1 --branch ${GITHUB_REF_NAME} \
|
git clone --depth=1 --branch ${GITHUB_REF_NAME} \
|
||||||
http://8.161.227.145:3000/XEngineers/CamTalk.git /tmp/camtalk-deploy
|
http://8.161.227.145:3000/XEngineers/CamTalk.git /tmp/camtalk-deploy
|
||||||
|
|||||||
Reference in New Issue
Block a user