mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
fix: Use Docker Compose profiles to isolate database containers in CI
- Add profiles to database services (mariadb, mongodb, postgresql) so only the needed database starts per CI job, freeing resources for the executor - Increase Sites deployment activation timeouts from 50-100s to 200s for MongoDB compatibility - Increase SSR logs polling timeout from 30s to 120s Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
25a9aa1805
commit
f0e6105ba0
5 files changed
+13
-6
No files matched your search
@@ -229,7 +229,9 @@ jobs:
|
||||
docker load --input /tmp/${{ env.IMAGE }}.tar
|
||||
sed -i 's|^_APP_BROWSER_HOST=.*|_APP_BROWSER_HOST=http://invalid-browser/v1|' .env
|
||||
|
||||
# Set DB Adapter in .env before starting services
|
||||
# Set DB Adapter and Compose profile in .env before starting services
|
||||
DB_ADAPTER_LOWER=$(echo "${{ matrix.db_adapter }}" | tr 'A-Z' 'a-z')
|
||||
sed -i "s|^COMPOSE_PROFILES=.*|COMPOSE_PROFILES=${DB_ADAPTER_LOWER}|" .env
|
||||
if [ "${{ matrix.db_adapter }}" = "MARIADB" ]; then
|
||||
sed -i 's|^_APP_DB_ADAPTER=.*|_APP_DB_ADAPTER=mariadb|' .env
|
||||
sed -i 's|^_APP_DB_HOST=.*|_APP_DB_HOST=mariadb|' .env
|
||||
|
||||
Reference in new issue
Block a user