Add clone retry logic for DNS resilience
This commit is contained in:
parent
71f1d324a1
commit
32b38c432b
1 changed files with 8 additions and 0 deletions
|
|
@ -2,6 +2,14 @@ when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: master
|
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:
|
steps:
|
||||||
- name: install-api-deps
|
- name: install-api-deps
|
||||||
image: python:3.13-slim
|
image: python:3.13-slim
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue