mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Update deploy.yml
This commit is contained in:
36
.github/workflows/deploy.yml
vendored
36
.github/workflows/deploy.yml
vendored
@@ -57,20 +57,7 @@ jobs:
|
|||||||
# -------------------------------------------------------
|
# -------------------------------------------------------
|
||||||
# Tier 1: Non-deployable files — skip if ONLY these changed
|
# Tier 1: Non-deployable files — skip if ONLY these changed
|
||||||
# -------------------------------------------------------
|
# -------------------------------------------------------
|
||||||
NON_DEPLOYABLE_PATTERN="^docs/\
|
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$"
|
||||||
|^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
|
ALL_NON_DEPLOYABLE=true
|
||||||
while IFS= read -r file; do
|
while IFS= read -r file; do
|
||||||
@@ -89,26 +76,7 @@ jobs:
|
|||||||
# -------------------------------------------------------
|
# -------------------------------------------------------
|
||||||
# Tier 2: Global files — deploy all services
|
# Tier 2: Global files — deploy all services
|
||||||
# -------------------------------------------------------
|
# -------------------------------------------------------
|
||||||
GLOBAL_PATTERN="^\.github/\
|
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$"
|
||||||
|^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
|
if echo "$CHANGED" | grep -qE "$GLOBAL_PATTERN"; then
|
||||||
echo "Global file(s) changed — deploying all services."
|
echo "Global file(s) changed — deploying all services."
|
||||||
JSON=$(printf '%s\n' "${ALL_SERVICES[@]}" | jq -R . | jq -sc .)
|
JSON=$(printf '%s\n' "${ALL_SERVICES[@]}" | jq -R . | jq -sc .)
|
||||||
|
|||||||
Reference in New Issue
Block a user