Update deploy.yml

This commit is contained in:
Yonas Tewabe
2026-06-16 10:21:57 +03:00
committed by GitHub
parent c267d4f641
commit f52fc44ca1

View File

@@ -57,20 +57,7 @@ jobs:
# -------------------------------------------------------
# Tier 1: Non-deployable files — skip if ONLY these changed
# -------------------------------------------------------
NON_DEPLOYABLE_PATTERN="^docs/\
|^README\.md$\
|^DEPLOYMENT\.md$\
|^CLAUDE\.md$\
|^checkpoint\.md$\
|^orgstructure\.md$\
|^ITMLS_DB_Design\.md$\
|.*\.md$\
|^\.eslintrc\
|^\.prettierrc\
|^\.editorconfig\
|^\.gitignore\
|^\.gitattributes\
|^commitlint\.config\.js$"
NON_DEPLOYABLE_PATTERN="^docs/|^README\.md$|^DEPLOYMENT\.md$|^CLAUDE\.md$|^checkpoint\.md$|^orgstructure\.md$|^ITMLS_DB_Design\.md$|.*\.md$|^\.eslintrc|^\.prettierrc|^\.editorconfig|^\.gitignore|^\.gitattributes|^commitlint\.config\.js$"
ALL_NON_DEPLOYABLE=true
while IFS= read -r file; do
@@ -89,26 +76,7 @@ jobs:
# -------------------------------------------------------
# Tier 2: Global files — deploy all services
# -------------------------------------------------------
GLOBAL_PATTERN="^\.github/\
|^docker-compose\.yaml$\
|^turbo\.json$\
|^tsconfig\.json$\
|^tsconfig\.base\.json$\
|^pnpm-workspace\.yaml$\
|^pnpm-lock\.yaml$\
|^package\.json$\
|^\.env(\.[a-z]+)?$\
|^packages/\
|^infrastructure/\
|^scripts/deploy/\
|^wagon.*\.ts$\
|^cargo.*\.ts$\
|^container.*\.ts$\
|^use-.*\.ts$\
|^.*\.service\.ts$\
|^.*\.entity\.ts$\
|^.*-types\.ts$"
GLOBAL_PATTERN="^\.github/^docker-compose\.yaml$|^turbo\.json$|^tsconfig\.json$|^tsconfig\.base\.json$|^pnpm-workspace\.yaml$|^pnpm-lock\.yaml$|^package\.json$|^\.env(\.[a-z]+)?$|^packages/|^infrastructure/|^scripts/deploy/|^wagon.*\.ts$|^cargo.*\.ts$|^container.*\.ts$|^use-.*\.ts$|^.*\.service\.ts$|^.*\.entity\.ts$|^.*-types\.ts$"
if echo "$CHANGED" | grep -qE "$GLOBAL_PATTERN"; then
echo "Global file(s) changed — deploying all services."
JSON=$(printf '%s\n' "${ALL_SERVICES[@]}" | jq -R . | jq -sc .)