Retry CI image push
All checks were successful
Build and deploy Backend / build (push) Successful in 53s

This commit is contained in:
Ruslan Bakiev
2026-05-14 08:54:12 +07:00
parent 3a072a7165
commit 11d41be89e

View File

@@ -25,7 +25,13 @@ jobs:
- name: Build and push image - name: Build and push image
run: | run: |
set -euo pipefail set -euo pipefail
docker buildx build --push --provenance=false --tag "$IMAGE_SHA" --tag "$IMAGE_LATEST" . for attempt in 1 2 3; do
if docker buildx build --push --provenance=false --tag "$IMAGE_SHA" --tag "$IMAGE_LATEST" .; then
exit 0
fi
sleep "$((attempt * 10))"
done
exit 1
- name: Skip stale deployment - name: Skip stale deployment
run: | run: |