Add flock-based locking to prevent concurrent service operations
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 27s
Build-Test-Publish / build (linux/arm64) (push) Successful in 1m1s

This commit is contained in:
j
2026-03-29 16:22:00 +13:00
parent dafc0529f0
commit 10c043878f
3 changed files with 19 additions and 0 deletions

View File

@@ -45,6 +45,10 @@ export TEMP_DIR="${2:-}"
export DOCKER_CLI_HINTS=false
SERVICE_DIR="${DROPSHELL_DIR}/services/${SERVICE}"
# -- Acquire exclusive lock (released automatically on exit) --
_lock_service "${SERVICE_DIR}"
LIVE_CONFIG="${SERVICE_DIR}/config"
LIVE_TEMPLATE="${SERVICE_DIR}/template"
STAGING_DIR="${SERVICE_DIR}/_staging"