main
Some checks failed
UI Deploy (Next-Auth Support) 🎨 / build-and-deploy (push) Failing after 2m42s
Some checks failed
UI Deploy (Next-Auth Support) 🎨 / build-and-deploy (push) Failing after 2m42s
This commit is contained in:
37
.gitea/workflows/deploy-ui.yml
Normal file
37
.gitea/workflows/deploy-ui.yml
Normal 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
|
||||
Reference in New Issue
Block a user