Use DEPLOY_PATH variable and add mount visibility checks
All checks were successful
Redeploy Docker Compose / redeploy (push) Successful in 15s

This commit is contained in:
2026-03-26 19:24:02 +01:00
parent 52ac13d661
commit 60c6d86d19

View File

@@ -9,7 +9,7 @@ jobs:
redeploy: redeploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
DEPLOY_PATH: ${{ secrets.DEPLOY_PATH }} DEPLOY_PATH: ${{ vars.DEPLOY_PATH }}
DEPLOY_BRANCH: main DEPLOY_BRANCH: main
steps: steps:
- name: Validate deployment path - name: Validate deployment path
@@ -17,7 +17,7 @@ jobs:
run: | run: |
set -euo pipefail set -euo pipefail
if [ -z "${DEPLOY_PATH:-}" ]; then if [ -z "${DEPLOY_PATH:-}" ]; then
echo "Missing required secret: DEPLOY_PATH" echo "Missing required variable: DEPLOY_PATH"
exit 1 exit 1
fi fi
@@ -27,6 +27,8 @@ jobs:
set -euo pipefail set -euo pipefail
DEPLOY_PATH="$(printf '%s' "$DEPLOY_PATH" | tr -d '\r\n')" DEPLOY_PATH="$(printf '%s' "$DEPLOY_PATH" | tr -d '\r\n')"
echo "Using DEPLOY_PATH=<$DEPLOY_PATH>" echo "Using DEPLOY_PATH=<$DEPLOY_PATH>"
echo "Mounted parent path check:"
ls -ld /home/alshuriga/web-apps || true
ls -ld "$DEPLOY_PATH" ls -ld "$DEPLOY_PATH"
cd "$DEPLOY_PATH" cd "$DEPLOY_PATH"
git fetch origin "$DEPLOY_BRANCH" git fetch origin "$DEPLOY_BRANCH"