generated from fahricansecer/boilerplate-be
All checks were successful
Backend Deploy 🚀 / build-and-deploy (push) Successful in 2m15s
32 lines
867 B
YAML
32 lines
867 B
YAML
name: Backend Deploy 🚀
|
|
run-name: ${{ gitea.actor }} backend 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
|
|
run: docker build -t backend-haruncan-studio:latest .
|
|
|
|
- name: Eski Konteyneri Sil
|
|
run: docker rm -f backend-haruncan-studio-container || true
|
|
|
|
- name: Yeni Versiyonu Başlat
|
|
run: |
|
|
docker run -d \
|
|
--name backend-haruncan-studio-container \
|
|
--restart always \
|
|
--network gitea-server_gitea \
|
|
-p 1809:3000 \
|
|
-e DATABASE_URL='${{ secrets.DATABASE_URL }}' \
|
|
-e JWT_SECRET='${{ secrets.JWT_SECRET }}' \
|
|
-e NODE_ENV='production' \
|
|
backend-haruncan-studio:latest |