Compare commits

...

13 Commits

Author SHA1 Message Date
5fb91c8701 Merge pull request 'test' (#13) from test into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #13
2026-03-27 21:42:34 +03:00
38e1058e05 Merge pull request 'drone yml update' (#12) from develop into test
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #12
2026-03-27 21:36:01 +03:00
Bulut Kuru
acd3298c61 drone yml update 2026-03-27 21:35:37 +03:00
13fc0a25d0 Merge pull request 'test' (#11) from test into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #11
2026-03-27 20:58:35 +03:00
486d1b55c5 Merge pull request 'develop' (#10) from develop into test
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Reviewed-on: #10
2026-03-27 20:56:42 +03:00
Bulut Kuru
733607493a deploy sh6
All checks were successful
continuous-integration/drone/pr Build is passing
2026-03-27 20:54:05 +03:00
Bulut Kuru
8bd35c425d deploy sh5
Some checks reported errors
continuous-integration/drone/push Build was killed
2026-03-27 20:53:18 +03:00
Bulut Kuru
5ad61853b4 Simplify Drone pipeline for test and prod only
All checks were successful
continuous-integration/drone/push Build is passing
2026-03-27 20:51:20 +03:00
1fd5cab540 Merge pull request 'deploy sh4' (#9) from develop into test
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #9
2026-03-27 14:58:46 +03:00
Bulut Kuru
272010d738 deploy sh4
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2026-03-27 14:55:05 +03:00
9099622ceb Merge pull request 'test' (#8) from test into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #8
2026-03-27 14:43:03 +03:00
4f01c1bec8 Merge pull request 'test' (#5) from test into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #5
2026-03-27 14:29:17 +03:00
bulut
55711a88ef trust proxies
Some checks failed
continuous-integration/drone/push Build is failing
2026-03-27 12:00:00 +03:00
6 changed files with 12 additions and 18 deletions

View File

@@ -3,27 +3,13 @@ type: docker
name: bogazici-api name: bogazici-api
trigger: trigger:
event:
- push
branch: branch:
- develop
- test - test
- main - main
steps: steps:
- name: laravel-check
image: php:8.4-cli
when:
branch:
- develop
commands:
- apt-get update && apt-get install -y git unzip curl libzip-dev libicu-dev default-mysql-client
- docker-php-ext-install pdo_mysql zip intl
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- cp .env.example .env || true
- composer install --no-interaction --prefer-dist --optimize-autoloader
- php artisan key:generate --force || true
- php artisan optimize:clear || true
- php artisan test || true
- name: deploy-test - name: deploy-test
image: appleboy/drone-ssh image: appleboy/drone-ssh
when: when:

View File

@@ -15,6 +15,8 @@ return Application::configure(basePath: dirname(__DIR__))
apiPrefix: 'api', apiPrefix: 'api',
) )
->withMiddleware(function (Middleware $middleware): void { ->withMiddleware(function (Middleware $middleware): void {
$middleware->trustProxies(at: '*');
$middleware->statefulApi(); $middleware->statefulApi();
$middleware->throttleApi('60,1'); $middleware->throttleApi('60,1');

View File

@@ -5,7 +5,6 @@ services:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: bdc-api-prod
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./:/var/www/html - ./:/var/www/html

View File

@@ -5,7 +5,6 @@ services:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: bdc-api-test
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./:/var/www/html - ./:/var/www/html

View File

@@ -37,9 +37,13 @@ if ! grep -q '^APP_KEY=base64:' .env; then
exit 1 exit 1
fi fi
mkdir -p "$UPLOADS_DIR" mkdir -p "$UPLOADS_DIR"
chmod 2775 "$UPLOADS_DIR" 2>/dev/null || true chmod 2775 "$UPLOADS_DIR" 2>/dev/null || true
docker rm -f bogazici-api-prod-bdc-api-prod-1 2>/dev/null || true
docker rm -f bdc-api-prod 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

View File

@@ -40,9 +40,13 @@ fi
mkdir -p "$UPLOADS_DIR" mkdir -p "$UPLOADS_DIR"
chmod 2775 "$UPLOADS_DIR" 2>/dev/null || true chmod 2775 "$UPLOADS_DIR" 2>/dev/null || true
docker rm -f bogazici-api-test-bdc-api-test-1 2>/dev/null || true
docker rm -f bdc-api-test 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
echo "⏳ Container hazır olması bekleniyor..." echo "⏳ Container hazır olması bekleniyor..."
for i in {1..30}; do for i in {1..30}; do
if docker compose -p "$COMPOSE_PROJECT" -f "$COMPOSE_FILE" ps --status running | grep -q "$CONTAINER"; then if docker compose -p "$COMPOSE_PROJECT" -f "$COMPOSE_FILE" ps --status running | grep -q "$CONTAINER"; then