automate node version
All checks were successful
Deploy to Server / deploy (push) Successful in 1m26s

This commit is contained in:
2026-04-24 18:30:10 -05:00
parent 24d126eeb9
commit de2d90f265
9 changed files with 9352 additions and 13 deletions

View File

@@ -41,6 +41,11 @@ jobs:
# Note: Changed 'onedev' to 'origin'. Update if your Gitea remote is named differently.
git pull origin main
echo "==> Updating Node version for Docker..."
NODE_VER=$(cat .node-version)
sed -i '/^NODE_VERSION=/d' .env || true
echo "NODE_VERSION=${NODE_VER}-alpine" >> .env
echo "==> Running Build..."
# If this build fails, 'set -e' aborts the script instantly.
# Your existing containers will NOT be touched, keeping the site up.