fix: Pin node version in Docker base image (#20634)

This commit is contained in:
Artem Sorokin 2025-10-13 14:01:02 +02:00 committed by GitHub
parent b136a695b7
commit 4d80c2e898
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 8 additions and 7 deletions

View File

@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: ['20', '22', '24']
node_version: ['20', '22.18.0', '24']
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

View File

@ -9,6 +9,7 @@ name: 'Docker: Build and Push'
env:
NODE_OPTIONS: '--max-old-space-size=7168'
NODE_VERSION: '22.18.0'
on:
schedule:
@ -352,7 +353,7 @@ jobs:
context: .
file: ./docker/images/n8n/Dockerfile
build-args: |
NODE_VERSION=22
NODE_VERSION=${{ env.NODE_VERSION }}
N8N_VERSION=${{ needs.determine-build-context.outputs.n8n_version }}
N8N_RELEASE_TYPE=${{ needs.determine-build-context.outputs.release_type }}
platforms: ${{ matrix.docker_platform }}
@ -367,7 +368,7 @@ jobs:
context: .
file: ./docker/images/runners/Dockerfile
build-args: |
NODE_VERSION=22.19
NODE_VERSION=${{ env.NODE_VERSION }}
PYTHON_VERSION=3.13
N8N_VERSION=${{ needs.determine-build-context.outputs.n8n_version }}
N8N_RELEASE_TYPE=${{ needs.determine-build-context.outputs.release_type }}

View File

@ -1,4 +1,4 @@
ARG NODE_VERSION=22
ARG NODE_VERSION=22.18.0
# ==============================================================================
# STAGE 1: Builder for Base Dependencies

View File

@ -1,4 +1,4 @@
ARG NODE_VERSION=22
ARG NODE_VERSION=22.18.0
ARG N8N_VERSION=snapshot
ARG LAUNCHER_VERSION=1.4.0
ARG TARGETPLATFORM

View File

@ -1,4 +1,4 @@
ARG NODE_VERSION=22.19
ARG NODE_VERSION=22.18.0
ARG PYTHON_VERSION=3.13
# ==============================================================================

View File

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
FROM node:22.16.0 AS base
FROM node:22.18.0 AS base
# Install required dependencies
RUN apt-get update && apt-get install -y gnupg2 curl