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:
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user