Add clone retry logic for DNS resilience

This commit is contained in:
Viktor Barzin 2026-02-22 22:13:22 +00:00
parent 23b544f73a
commit 71f1d324a1

View file

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