Add clone retry logic for DNS resilience
This commit is contained in:
parent
23b544f73a
commit
71f1d324a1
1 changed files with 8 additions and 0 deletions
|
|
@ -2,6 +2,14 @@ when:
|
|||
- event: push
|
||||
branch: master
|
||||
|
||||
clone:
|
||||
git:
|
||||
image: alpine
|
||||
commands:
|
||||
- "apk update && apk add git"
|
||||
- "for i in 1 2 3 4 5; do git clone https://github.com/immovika/realestate-crawler.git . && break || echo \"Clone attempt $i failed, retrying in 10s...\" && sleep 10; done"
|
||||
- "git checkout $CI_COMMIT_SHA"
|
||||
|
||||
steps:
|
||||
- name: install-frontend-deps
|
||||
image: node:24-alpine
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue