Update deploy.yml
All checks were successful
Backend Deploy 🚀 / build-and-deploy (push) Successful in 25s

This commit is contained in:
2026-03-23 00:01:59 +03:00
parent a65377bf4e
commit c7c7788f54

View File

@@ -19,6 +19,14 @@ jobs:
- name: Eski Konteyneri Sil - name: Eski Konteyneri Sil
run: docker rm -f backend-haruncan-studio-container || true run: docker rm -f backend-haruncan-studio-container || true
- name: Veritabanı Migration
run: |
docker run --rm \
--network docker-data_gitea \
-e DATABASE_URL='${{ secrets.DATABASE_URL }}' \
backend-haruncan-studio:latest \
npx prisma migrate deploy
- name: Yeni Versiyonu Başlat - name: Yeni Versiyonu Başlat
run: | run: |
docker run -d \ docker run -d \
@@ -30,8 +38,3 @@ jobs:
-e JWT_SECRET='${{ secrets.JWT_SECRET }}' \ -e JWT_SECRET='${{ secrets.JWT_SECRET }}' \
-e NODE_ENV='production' \ -e NODE_ENV='production' \
backend-haruncan-studio:latest backend-haruncan-studio:latest
- name: Veritabanı Migration
run: |
sleep 5
docker exec backend-haruncan-studio-container npx prisma migrate deploy