ci(web): pass resolved APP_DIR path (no symlink) to docker stack deploy to satisfy bind mount requirement
This commit is contained in:
parent
03d31d082c
commit
df4ae45458
1 changed files with 6 additions and 1 deletions
7
.github/workflows/ci-cd-web-desktop.yml
vendored
7
.github/workflows/ci-cd-web-desktop.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue