main
Some checks failed
UI Deploy (Next-Auth Support) 🎨 / build-and-deploy (push) Failing after 2m42s

This commit is contained in:
2026-01-27 23:24:17 +03:00
commit dc7ed1c48c
165 changed files with 23798 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
name: UI Deploy (Next-Auth Support) 🎨
run-name: ${{ gitea.actor }} frontend güncelliyor...
on:
push:
branches: [main]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Kodu Çek
uses: actions/checkout@v3
- name: Docker Build
# Tarayıcı tarafında (Client-side) lazım olanları build anında veriyoruz
run: |
docker build \
--build-arg NEXT_PUBLIC_API_URL='${{ secrets.NEXT_PUBLIC_API_URL }}' \
--build-arg NEXT_PUBLIC_AUTH_REQUIRED='${{ secrets.NEXT_PUBLIC_AUTH_REQUIRED }}' \
--build-arg NEXT_PUBLIC_GOOGLE_API_KEY='${{ secrets.NEXT_PUBLIC_GOOGLE_API_KEY }}' \
-t frontend-proje:latest .
- name: Eski Konteyneri Sil
run: docker rm -f frontend-container || true
- name: Yeni Versiyonu Başlat
# Sunucu tarafında (Server-side/Auth) lazım olanları run anında veriyoruz
run: |
docker run -d \
--name frontend-container \
--restart always \
--network gitea-server_gitea \
-p 1800:3000 \
-e NEXTAUTH_SECRET='${{ secrets.NEXTAUTH_SECRET }}' \
-e NEXTAUTH_URL='${{ secrets.NEXTAUTH_URL }}' \
frontend-proje:latest