Skip to content

Commit b9993b9

Browse files
LEANDERANTONYclaude
andcommitted
ci: also skip backend build+deploy on frontend-only commits
deploy.yml builds + ships the BACKEND /api image to the VPS only; the frontend deploys independently via Vercel. A frontend-only commit was still busting the Docker cache at `COPY . .` (frontend/ is in the build context), pushing a fresh GHCR image, and force-recreating the prod backend container — for a change the backend never serves. Added 'frontend/**' to the existing paths-ignore. Frontend-only and docs-only commits now skip this pipeline entirely (Vercel still deploys the frontend); mixed commits touching backend/src still deploy. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 817c575 commit b9993b9

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@ name: Build & Deploy
33
on:
44
push:
55
branches: [main]
6-
# Docs-only commits don't change the runtime image — skip the
7-
# build + VPS container recreate. A mixed code+docs commit still
8-
# deploys (paths-ignore only skips when ALL changed files match).
6+
# This pipeline builds + ships the BACKEND /api image to the VPS
7+
# only. The frontend deploys independently via Vercel, so a
8+
# frontend-only or docs-only commit never needs this pipeline —
9+
# skip the GHCR rebuild + VPS container recreate for them. A mixed
10+
# commit that also touches backend/src still deploys (paths-ignore
11+
# only skips when ALL changed files match).
912
paths-ignore:
1013
- '**/*.md'
1114
- 'docs/**'
1215
- 'LICENSE'
16+
- 'frontend/**'
1317

1418
env:
1519
IMAGE: ghcr.io/leanderantony/ai_job_application_agent/api

0 commit comments

Comments
 (0)