From df4ae454584b82a3e25c1eeb68b56f9a4ffb9bcb Mon Sep 17 00:00:00 2001 From: Esdras Renan Date: Thu, 16 Oct 2025 13:47:58 -0300 Subject: [PATCH] ci(web): pass resolved APP_DIR path (no symlink) to docker stack deploy to satisfy bind mount requirement --- .github/workflows/ci-cd-web-desktop.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd-web-desktop.yml b/.github/workflows/ci-cd-web-desktop.yml index a3011a3..d963b55 100644 --- a/.github/workflows/ci-cd-web-desktop.yml +++ b/.github/workflows/ci-cd-web-desktop.yml @@ -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: |