fix: read OWNER_PASSWORD via docker instead of direct filesystem
This commit is contained in:
@@ -43,10 +43,7 @@ jobs:
|
|||||||
- name: Prepare .env
|
- name: Prepare .env
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
HOST_OWNER_PASSWORD=""
|
HOST_OWNER_PASSWORD=$(docker run --rm -v "${DEPLOY_PATH}:/host-deploy:ro" alpine:latest sh -c "grep '^OWNER_PASSWORD=' /host-deploy/.env | cut -d= -f2-" 2>/dev/null || true)
|
||||||
if [ -f "${DEPLOY_PATH}/.env" ]; then
|
|
||||||
HOST_OWNER_PASSWORD=$(grep '^OWNER_PASSWORD=' "${DEPLOY_PATH}/.env" | cut -d= -f2- || true)
|
|
||||||
fi
|
|
||||||
if [ -z "${HOST_OWNER_PASSWORD}" ]; then
|
if [ -z "${HOST_OWNER_PASSWORD}" ]; then
|
||||||
echo "ERROR: OWNER_PASSWORD not found in ${DEPLOY_PATH}/.env"
|
echo "ERROR: OWNER_PASSWORD not found in ${DEPLOY_PATH}/.env"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user