mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
change node version and modify docker compose
This commit is contained in:
@@ -49,6 +49,18 @@ for service in "$@"; do
|
||||
mkdir -p "$(dirname "${dest}")"
|
||||
cp "${src}" "${dest}"
|
||||
echo "Synced ${src} -> ${dest}"
|
||||
|
||||
port_value=$(sed -n -E 's/^[[:space:]]*PORT[[:space:]]*=[[:space:]]*"?([^"#]+)"?[[:space:]]*(#.*)?$/\1/p' "${src}" | head -n1 | tr -d '[:space:]')
|
||||
if [[ -z "${port_value}" ]]; then
|
||||
echo "Missing required PORT in env file: ${src}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# if [[ -n "${GITHUB_ENV:-}" ]]; then
|
||||
# service_var=$(echo "${service}" | tr '[:lower:]-' '[:upper:]_')
|
||||
# echo "${service_var}_PORT=${port_value}" >> "${GITHUB_ENV}"
|
||||
# echo "Exported ${service_var}_PORT from ${src}"
|
||||
# fi
|
||||
done
|
||||
|
||||
# Optional build-time variables (VITE_API_URL, etc.)
|
||||
|
||||
Reference in New Issue
Block a user