diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 9dab68f..a3e3771 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -90,14 +90,14 @@ jobs: push_with_retry() { local ref="$1" local attempt=1 - local max_attempts=3 + local max_attempts=5 while [ $attempt -le $max_attempts ]; do echo "=== Push (attempt $attempt/$max_attempts): $ref ===" - if docker push "$ref"; then + if docker push --max-concurrent-uploads=1 "$ref"; then return 0 fi - echo "::warning::Push of $ref failed, retrying in 15s..." - sleep 15 + echo "::warning::Push of $ref failed, retrying in 30s..." + sleep 30 attempt=$((attempt + 1)) done echo "::error::Push of $ref failed after $max_attempts attempts"