Compare commits

...

6 Commits

Author SHA1 Message Date
Bulut Kuru
acd3298c61 drone yml update 2026-03-27 21:35:37 +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
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
Bulut Kuru
9e88de9902 deploy sh3
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2026-03-27 14:40:18 +03:00
5 changed files with 12 additions and 18 deletions

View File

@@ -3,27 +3,13 @@ type: docker
name: bogazici-api
trigger:
event:
- push
branch:
- develop
- test
- main
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
image: appleboy/drone-ssh
when:

View File

@@ -1,9 +1,10 @@
name: bogazici-api-prod
services:
bdc-api-prod:
build:
context: .
dockerfile: Dockerfile
container_name: bdc-api-prod
restart: unless-stopped
volumes:
- ./:/var/www/html

View File

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

View File

@@ -37,9 +37,13 @@ if ! grep -q '^APP_KEY=base64:' .env; then
exit 1
fi
mkdir -p "$UPLOADS_DIR"
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" up -d --build

View File

@@ -40,9 +40,13 @@ fi
mkdir -p "$UPLOADS_DIR"
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" up -d --build
echo "⏳ Container hazır olması bekleniyor..."
for i in {1..30}; do
if docker compose -p "$COMPOSE_PROJECT" -f "$COMPOSE_FILE" ps --status running | grep -q "$CONTAINER"; then