Merge pull request 'develop' (#4) from develop into test
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing

Reviewed-on: #4
This commit is contained in:
2026-03-27 14:25:43 +03:00
2 changed files with 9 additions and 9 deletions

View File

@@ -1,3 +1,5 @@
name: bogazici-api-test
services: services:
bdc-api-test: bdc-api-test:
build: build:

View File

@@ -15,11 +15,10 @@ cd "$PROJECT_DIR"
git config --global --add safe.directory "$PROJECT_DIR" || true git config --global --add safe.directory "$PROJECT_DIR" || true
sudo chown -R "$USER":www-data storage bootstrap/cache 2>/dev/null || true find storage -type d -exec chmod 2775 {} \; 2>/dev/null || true
sudo find storage -type d -exec chmod 2775 {} \; 2>/dev/null || true find storage -type f -exec chmod 664 {} \; 2>/dev/null || true
sudo find storage -type f -exec chmod 664 {} \; 2>/dev/null || true find bootstrap/cache -type d -exec chmod 2775 {} \; 2>/dev/null || true
sudo find bootstrap/cache -type d -exec chmod 2775 {} \; 2>/dev/null || true find bootstrap/cache -type f -exec chmod 664 {} \; 2>/dev/null || true
sudo find bootstrap/cache -type f -exec chmod 664 {} \; 2>/dev/null || true
git fetch origin git fetch origin
git checkout "$BRANCH" git checkout "$BRANCH"
@@ -38,10 +37,9 @@ if ! grep -q '^APP_KEY=base64:' .env; then
exit 1 exit 1
fi fi
sudo mkdir -p "$UPLOADS_DIR"/{images,videos,hero-slides,settings,pages,courses,announcements,categories} mkdir -p "$UPLOADS_DIR"/{images,videos,hero-slides,settings,pages,courses,announcements,categories}
sudo chown -R "$USER":www-data "$UPLOADS_DIR" 2>/dev/null || true find "$UPLOADS_DIR" -type d -exec chmod 2775 {} \; 2>/dev/null || true
sudo find "$UPLOADS_DIR" -type d -exec chmod 2775 {} \; 2>/dev/null || true find "$UPLOADS_DIR" -type f -exec chmod 664 {} \; 2>/dev/null || true
sudo find "$UPLOADS_DIR" -type f -exec chmod 664 {} \; 2>/dev/null || true
docker compose -p "$COMPOSE_PROJECT" -f "$COMPOSE_FILE" down --remove-orphans || true docker compose -p "$COMPOSE_PROJECT" -f "$COMPOSE_FILE" down --remove-orphans || true
docker compose -p "$COMPOSE_PROJECT" -f "$COMPOSE_FILE" up -d --build docker compose -p "$COMPOSE_PROJECT" -f "$COMPOSE_FILE" up -d --build