modify port mapping to read from env

This commit is contained in:
SennayT
2026-05-28 14:26:46 +03:00
parent 4b8f1b3ab1
commit e5ffa91918
2 changed files with 11 additions and 11 deletions

View File

@@ -56,11 +56,11 @@ for service in "$@"; do
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
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.)