chore: upgrade Node.js to 24.14.1 (LTS) (#11918)

* Initial plan

* chore: upgrade Node.js base image from 22.21.0 to 24.14.1 (LTS)

* chore: include node version in node_modules cache keys

* Add canary build for docker changes

* fix: Try docker driver

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com>
Co-authored-by: Tom Moor <tom@getoutline.com>
This commit is contained in:
Copilot
2026-04-01 17:47:01 -04:00
committed by GitHub
parent 222de9ef01
commit c4479e257e
7 changed files with 60 additions and 17 deletions
+13 -13
View File
@@ -24,17 +24,17 @@ jobs:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Enable Corepack - name: Enable Corepack
run: corepack enable run: corepack enable
- name: Use Node.js 22.x - name: Use Node.js 24.x
uses: actions/setup-node@v5 uses: actions/setup-node@v5
with: with:
node-version: 22.x node-version: 24.x
cache: "yarn" cache: "yarn"
- name: Cache node_modules - name: Cache node_modules
id: cache-node-modules id: cache-node-modules
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: node_modules path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} key: ${{ runner.os }}-node-modules-24.x-${{ hashFiles('yarn.lock') }}
- name: Install dependencies - name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true' if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn install --immutable run: yarn install --immutable
@@ -48,13 +48,13 @@ jobs:
run: corepack enable run: corepack enable
- uses: actions/setup-node@v5 - uses: actions/setup-node@v5
with: with:
node-version: 22.x node-version: 24.x
cache: "yarn" cache: "yarn"
- name: Restore node_modules - name: Restore node_modules
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: node_modules path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} key: ${{ runner.os }}-node-modules-24.x-${{ hashFiles('yarn.lock') }}
- run: yarn lint --quiet - run: yarn lint --quiet
types: types:
@@ -66,13 +66,13 @@ jobs:
run: corepack enable run: corepack enable
- uses: actions/setup-node@v5 - uses: actions/setup-node@v5
with: with:
node-version: 22.x node-version: 24.x
cache: "yarn" cache: "yarn"
- name: Restore node_modules - name: Restore node_modules
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: node_modules path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} key: ${{ runner.os }}-node-modules-24.x-${{ hashFiles('yarn.lock') }}
- run: yarn tsc - run: yarn tsc
changes: changes:
@@ -114,13 +114,13 @@ jobs:
run: corepack enable run: corepack enable
- uses: actions/setup-node@v5 - uses: actions/setup-node@v5
with: with:
node-version: 22.x node-version: 24.x
cache: "yarn" cache: "yarn"
- name: Restore node_modules - name: Restore node_modules
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: node_modules path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} key: ${{ runner.os }}-node-modules-24.x-${{ hashFiles('yarn.lock') }}
- run: yarn test:${{ matrix.test-group }} - run: yarn test:${{ matrix.test-group }}
test-server: test-server:
@@ -152,13 +152,13 @@ jobs:
run: corepack enable run: corepack enable
- uses: actions/setup-node@v5 - uses: actions/setup-node@v5
with: with:
node-version: 22.x node-version: 24.x
cache: "yarn" cache: "yarn"
- name: Restore node_modules - name: Restore node_modules
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: node_modules path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} key: ${{ runner.os }}-node-modules-24.x-${{ hashFiles('yarn.lock') }}
- run: yarn sequelize db:migrate - run: yarn sequelize db:migrate
- name: Run server tests - name: Run server tests
run: | run: |
@@ -175,13 +175,13 @@ jobs:
run: corepack enable run: corepack enable
- uses: actions/setup-node@v5 - uses: actions/setup-node@v5
with: with:
node-version: 22.x node-version: 24.x
cache: "yarn" cache: "yarn"
- name: Restore node_modules - name: Restore node_modules
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: node_modules path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} key: ${{ runner.os }}-node-modules-24.x-${{ hashFiles('yarn.lock') }}
- name: Set environment to production - name: Set environment to production
run: echo "NODE_ENV=production" >> $GITHUB_ENV run: echo "NODE_ENV=production" >> $GITHUB_ENV
- run: yarn vite:build - run: yarn vite:build
+43
View File
@@ -0,0 +1,43 @@
name: Docker Build Check
on:
push:
paths:
- "Dockerfile"
- "Dockerfile.base"
pull_request:
paths:
- "Dockerfile"
- "Dockerfile.base"
env:
BASE_IMAGE_NAME: outline-base
jobs:
build:
runs-on: ubicloud-standard-8
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: docker
- name: Build base image
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.base
tags: ${{ env.BASE_IMAGE_NAME }}:latest
push: false
- name: Build main image
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
push: false
build-args: |
BASE_IMAGE=${{ env.BASE_IMAGE_NAME }}:latest
+1 -1
View File
@@ -1 +1 @@
22 24
+1 -1
View File
@@ -6,7 +6,7 @@ ARG APP_PATH
WORKDIR $APP_PATH WORKDIR $APP_PATH
# --- # ---
FROM node:22.21.0-slim AS runner FROM node:24.14.1-slim AS runner
LABEL org.opencontainers.image.source="https://github.com/outline/outline" LABEL org.opencontainers.image.source="https://github.com/outline/outline"
+1 -1
View File
@@ -1,5 +1,5 @@
ARG APP_PATH=/opt/outline ARG APP_PATH=/opt/outline
FROM node:22.21.0 AS deps FROM node:24.14.1 AS deps
ARG APP_PATH ARG APP_PATH
WORKDIR $APP_PATH WORKDIR $APP_PATH
+1 -1
View File
@@ -41,7 +41,7 @@
"url": "https://github.com/sponsors/outline" "url": "https://github.com/sponsors/outline"
}, },
"engines": { "engines": {
"node": ">=20.12 <21 || 22" "node": ">=20.12 <21 || 22 || 24"
}, },
"repository": { "repository": {
"type": "git", "type": "git",