Parallelize frontend tests in Drone pipeline with 4 shards

Split the monolithic "build and test" kaniko step into a DAG:
tests run in 4 parallel shards (vitest --shard) alongside the
Docker image build, gated by a shared npm ci step. The kaniko
build now targets the named 'production' stage to skip the
in-Dockerfile test stage.
This commit is contained in:
Viktor Barzin 2026-02-21 21:02:22 +00:00
parent a36c0dfdf7
commit 15dbcfa332
No known key found for this signature in database
GPG key ID: 0EB088298288D958
2 changed files with 58 additions and 2 deletions

View file

@ -30,7 +30,7 @@ COPY . .
RUN npx vite build
# Stage 4: Serve with nginx
FROM nginx:alpine
FROM nginx:alpine AS production
# Remove default nginx static files
RUN rm -rf /usr/share/nginx/html/*