generated from fahricansecer/boilerplate-be
Update deploy.yml
All checks were successful
Backend Deploy 🚀 / build-and-deploy (push) Successful in 25s
All checks were successful
Backend Deploy 🚀 / build-and-deploy (push) Successful in 25s
This commit is contained in:
@@ -19,6 +19,14 @@ jobs:
|
||||
- name: Eski Konteyneri Sil
|
||||
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
|
||||
run: |
|
||||
docker run -d \
|
||||
@@ -30,8 +38,3 @@ jobs:
|
||||
-e JWT_SECRET='${{ secrets.JWT_SECRET }}' \
|
||||
-e NODE_ENV='production' \
|
||||
backend-haruncan-studio:latest
|
||||
|
||||
- name: Veritabanı Migration
|
||||
run: |
|
||||
sleep 5
|
||||
docker exec backend-haruncan-studio-container npx prisma migrate deploy
|
||||
Reference in New Issue
Block a user