ci(cd): skip docs-only pushes; move HOW_GITEA_MCP_WORKS into docs/
CD / Lint / Test / Vet (push) Successful in 18s
CD / Build & Import (push) Successful in 22s
CD / Deploy via GitOps (push) Successful in 4s

Relocate the doc under docs/ and add paths-ignore: ['docs/**'] to the CD push
trigger so documentation-only changes no longer rebuild the image and roll the
pod. Branch pushes with only docs/ changes are skipped; tag (v*) pushes and any
push touching code still deploy.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-07 00:43:46 +02:00
co-authored by Claude Opus 4.8
parent 09a7fad6ba
commit 1eceb5f7fe
2 changed files with 4 additions and 0 deletions
+4
View File
@@ -4,6 +4,10 @@ name: CD
push: push:
branches: [main] branches: [main]
tags: ["v*"] tags: ["v*"]
# Docs-only pushes don't change the image — skip the build/deploy roll.
# (Only applies to branch pushes; tag pushes always trigger.)
paths-ignore:
- 'docs/**'
env: env:
IMAGE: gitea-mcp IMAGE: gitea-mcp