ci(web): pass resolved APP_DIR path (no symlink) to docker stack deploy to satisfy bind mount requirement

This commit is contained in:
Esdras Renan 2025-10-16 13:47:58 -03:00
parent 03d31d082c
commit df4ae45458

View file

@ -193,7 +193,12 @@ jobs:
set -o allexport
if [ -f .env ]; then . ./.env; fi
set +o allexport
APP_DIR="$HOME/apps/sistema.current" RELEASE_SHA=${{ github.sha }} docker stack deploy --with-registry-auth -c stack.yml sistema
APP_DIR_RESOLVED="$(readlink -f "$HOME/apps/sistema.current" || true)"
if [ -z "$APP_DIR_RESOLVED" ] || [ ! -d "$APP_DIR_RESOLVED" ]; then
echo "ERROR: Resolved APP_DIR does not exist: $APP_DIR_RESOLVED" >&2; exit 1
fi
echo "Using APP_DIR (resolved)=$APP_DIR_RESOLVED"
APP_DIR="$APP_DIR_RESOLVED" RELEASE_SHA=${{ github.sha }} docker stack deploy --with-registry-auth -c stack.yml sistema
- name: Ensure Convex service envs and restart
run: |