feat(jenkins): manage node version

This commit is contained in:
2026-01-09 13:58:15 +01:00
parent 2823b903d4
commit 00e6ba3454
3 changed files with 4 additions and 1 deletions

View File

@@ -1 +1,2 @@
NODE_VERSION=24
CADDY_VERSION=2.10.2

View File

@@ -1,7 +1,8 @@
ARG NODE_VERSION
ARG CADDY_VERSION
# --- BUILD ---
FROM node:24-alpine AS build
FROM node:${NODE_VERSION}-alpine AS build
RUN corepack enable && corepack prepare pnpm@latest --activate
ENV ASTRO_TELEMETRY_DISABLED=1

View File

@@ -3,6 +3,7 @@ services:
build:
context: .
args:
- NODE_VERSION=${NODE_VERSION}
- CADDY_VERSION=${CADDY_VERSION}
image: portfolio:${PORTFOLIO_VERSION}
container_name: portfolio