From 1eceb5f7fe3414b04b14cf4e85fc523dac8b3790 Mon Sep 17 00:00:00 2001 From: Mathias Date: Tue, 7 Jul 2026 00:43:46 +0200 Subject: [PATCH] ci(cd): skip docs-only pushes; move HOW_GITEA_MCP_WORKS into docs/ 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) --- .gitea/workflows/cd.yml | 4 ++++ HOW_GITEA_MCP_WORKS.md => docs/HOW_GITEA_MCP_WORKS.md | 0 2 files changed, 4 insertions(+) rename HOW_GITEA_MCP_WORKS.md => docs/HOW_GITEA_MCP_WORKS.md (100%) diff --git a/.gitea/workflows/cd.yml b/.gitea/workflows/cd.yml index 519443a..900875e 100644 --- a/.gitea/workflows/cd.yml +++ b/.gitea/workflows/cd.yml @@ -4,6 +4,10 @@ name: CD push: branches: [main] 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: IMAGE: gitea-mcp diff --git a/HOW_GITEA_MCP_WORKS.md b/docs/HOW_GITEA_MCP_WORKS.md similarity index 100% rename from HOW_GITEA_MCP_WORKS.md rename to docs/HOW_GITEA_MCP_WORKS.md