Use DEPLOY_PATH variable and add mount visibility checks
All checks were successful
Redeploy Docker Compose / redeploy (push) Successful in 15s
All checks were successful
Redeploy Docker Compose / redeploy (push) Successful in 15s
This commit is contained in:
@@ -9,7 +9,7 @@ jobs:
|
||||
redeploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DEPLOY_PATH: ${{ secrets.DEPLOY_PATH }}
|
||||
DEPLOY_PATH: ${{ vars.DEPLOY_PATH }}
|
||||
DEPLOY_BRANCH: main
|
||||
steps:
|
||||
- name: Validate deployment path
|
||||
@@ -17,7 +17,7 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if [ -z "${DEPLOY_PATH:-}" ]; then
|
||||
echo "Missing required secret: DEPLOY_PATH"
|
||||
echo "Missing required variable: DEPLOY_PATH"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -27,6 +27,8 @@ jobs:
|
||||
set -euo pipefail
|
||||
DEPLOY_PATH="$(printf '%s' "$DEPLOY_PATH" | tr -d '\r\n')"
|
||||
echo "Using DEPLOY_PATH=<$DEPLOY_PATH>"
|
||||
echo "Mounted parent path check:"
|
||||
ls -ld /home/alshuriga/web-apps || true
|
||||
ls -ld "$DEPLOY_PATH"
|
||||
cd "$DEPLOY_PATH"
|
||||
git fetch origin "$DEPLOY_BRANCH"
|
||||
|
||||
Reference in New Issue
Block a user