automate node version
All checks were successful
Deploy to Server / deploy (push) Successful in 1m26s
All checks were successful
Deploy to Server / deploy (push) Successful in 1m26s
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user