newline fix
All checks were successful
Deploy to Server / deploy (push) Successful in 1m4s

This commit is contained in:
2026-04-24 18:50:51 -05:00
parent de2d90f265
commit 9d171c4fca
2 changed files with 9 additions and 0 deletions

View File

@@ -43,9 +43,17 @@ jobs:
echo "==> Updating Node version for Docker..."
NODE_VER=$(cat .node-version)
# Ensure a trailing newline exists before appending
echo "" >> .env
sed -i '/^NODE_VERSION=/d' .env || true
echo "NODE_VERSION=${NODE_VER}-alpine" >> .env
echo "==> Merging server/.env into root .env for Docker Compose interpolation..."
if [ -f server/.env ]; then
echo "" >> .env
cat server/.env >> .env
fi
echo "==> Running Build..."
# If this build fails, 'set -e' aborts the script instantly.
# Your existing containers will NOT be touched, keeping the site up.

View File

@@ -18,6 +18,7 @@ jobs:
- name: Update Docker env with Node version
run: |
NODE_VER=$(cat /home/adipu/LabWise/.node-version)
echo "" >> /home/adipu/LabWise/.env
sed -i '/^NODE_VERSION=/d' /home/adipu/LabWise/.env || true
echo "NODE_VERSION=${NODE_VER}-alpine" >> /home/adipu/LabWise/.env