Add clone retry logic for DNS resilience

This commit is contained in:
Viktor Barzin 2026-02-22 22:13:53 +00:00
parent 71f1d324a1
commit 32b38c432b

View file

@ -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