Files
bootstrap-auth-server/.gitea/workflows/deploy.yml
Aditya Gupta f99d5a1c7f
Some checks failed
Deployment Pipeline / deploy (push) Has been cancelled
Update .gitea/workflows/deploy.yml
2026-06-25 13:18:59 +05:30

34 lines
908 B
YAML

name: Deployment Pipeline
on:
push:
branches:
- master
jobs:
deploy:
runs-on: production
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Build Docker Image
run: docker build -t bootstrap-auth-server:latest .
- name: Stop and Remove Existing Container
run: |
docker stop auth-server || true
docker rm auth-server || true
- name: Run New Container
run: |
# We map a local volume /opt/bootstrap-auth-server/data to persist the SQLite DB across deployments
docker run -d \
--name auth-server \
--restart unless-stopped \
-p 3000:3000 \
-e SERVER_PORT=3000 \
-v /opt/bootstrap-auth-server/data:/app/data \
-e DATABASE_URL="sqlite:///app/data/data.db?mode=rwc" \
bootstrap-auth-server:latest