Run CI checks in Dokploy build

This commit is contained in:
Neeldhara Misra 2026-07-20 15:21:48 +05:30
parent 3d31dc1b55
commit 62544a1b97
4 changed files with 4 additions and 44 deletions

View file

@ -1,41 +0,0 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ forgejo.ref }}
cancel-in-progress: true
jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build

View file

@ -6,7 +6,7 @@ COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
RUN npm run ci
FROM nginx:1.27-alpine AS runtime

View file

@ -66,9 +66,9 @@ Simply open [Lovable](https://lovable.dev/projects/5ee9d1e7-af25-47e9-ab4c-bdbca
### Forgejo and Dokploy
Pushes and pull requests targeting `main` are verified by the Forgejo Actions workflow in `.forgejo/workflows/ci.yml`. The production container is built from `Dockerfile` and serves the Vite output with NGINX, including React Router fallback handling.
The production container is built from `Dockerfile` and serves the Vite output with NGINX, including React Router fallback handling. During the image build, `npm ci` installs the locked dependencies and `npm run ci` runs lint plus the production Vite build.
Dokploy is connected to the `Websites/interactives` Forgejo repository with autodeploy enabled. A successful push to `main` triggers a fresh Dockerfile build and replaces the running service only after the image has built successfully.
Dokploy is connected to the `Websites/interactives` Forgejo repository with autodeploy enabled. A push to `main` triggers the Dockerfile CI checks and replaces the running service only after every build step succeeds.
## Can I connect a custom domain to my Lovable project?

View file

@ -7,6 +7,7 @@
"dev": "vite",
"build": "vite build",
"build:dev": "vite build --mode development",
"ci": "npm run lint && npm run build",
"lint": "eslint .",
"preview": "vite preview"
},