Fix MinIO startup on Gitea runner
Gitea Actions CI / detect (push) Successful in 3s
Gitea Actions CI / Compose & nginx validation (push) Failing after 8s
Gitea Actions CI / Frontend (lint / type / test / build) (push) Failing after 22s
Gitea Actions CI / Backend (lint / type / test / build) (push) Failing after 41s

This commit is contained in:
k1nq
2026-09-18 18:09:58 +05:00
parent e43428c1a2
commit fb91da7917
+3 -2
View File
@@ -62,7 +62,7 @@ jobs:
CELERY_BROKER_URL: redis://localhost:6379/1
IMPORTS_KEK_B64: ${{ secrets.CI_IMPORTS_KEK_B64 }}
CI_RLS_DATABASE_PASSWORD: ${{ secrets.CI_RLS_DATABASE_PASSWORD }}
CI_MINIO_ROOT_PASSWORD: ${{ secrets.CI_MINIO_ROOT_PASSWORD }}
MINIO_ROOT_PASSWORD: ${{ secrets.CI_MINIO_ROOT_PASSWORD }}
RLS_DATABASE_URL: postgresql+psycopg://finance_app_test:${{ secrets.CI_RLS_DATABASE_PASSWORD }}@localhost:5432/finance_test
S3_ENDPOINT_URL: http://localhost:9000
S3_REGION: us-east-1
@@ -93,7 +93,7 @@ jobs:
# Unique container name keeps parallel/retried runs off each other.
- name: Start MinIO (S3-compatible test storage)
run: |
docker run -d --name minio-ci-${{ github.run_id }}-${{ github.run_attempt }} -p 9000:9000 \
docker run -d --name minio-ci-${{ github.run_id }}-${{ github.run_attempt }} --network host \
-e MINIO_ROOT_USER=minioadmin -e MINIO_ROOT_PASSWORD \
quay.io/minio/minio:latest server /data
for i in $(seq 1 30); do
@@ -102,6 +102,7 @@ jobs:
fi
sleep 2
done
docker logs minio-ci-${{ github.run_id }}-${{ github.run_attempt }}
echo "MinIO did not become healthy" && exit 1
- name: Test (pytest)
run: uv run pytest -ra