1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

chore(renovate): Only update to node LTS versions (#5355)

* chore(ci): Use LTS codenames for node base images

* chore(renovate): Only match node LTS versions

* chore(renovate): Pin docker digests
This commit is contained in:
bo0tzz 2023-11-28 21:50:48 +01:00 committed by GitHub
parent 9483c456d4
commit 6522707b49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"], "extends": ["config:base", "docker:pinDigests"],
"minimumReleaseAge": "5", "minimumReleaseAge": "5",
"packageRules": [ "packageRules": [
{ {
@ -47,6 +47,12 @@
{ {
"groupName": "base-image", "groupName": "base-image",
"matchPackagePrefixes": ["ghcr.io/immich-app/base-server"] "matchPackagePrefixes": ["ghcr.io/immich-app/base-server"]
},
{
"matchDatasources": ["docker"],
"matchPackageNames": ["node"],
"versionCompatibility": "^(?<version>[^-]+)(?<compatibility>-.*)?$",
"versioning": "node"
} }
], ],
"ignoreDeps": [ "ignoreDeps": [

View File

@ -13,7 +13,7 @@ RUN npm run build
RUN npm prune --omit=dev --omit=optional RUN npm prune --omit=dev --omit=optional
# web build # web build
FROM node:20.10-alpine3.18 as web FROM node:iron-alpine3.18 as web
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY web/package.json web/package-lock.json ./ COPY web/package.json web/package-lock.json ./

View File

@ -1,4 +1,4 @@
FROM node:20.10-alpine3.18 FROM node:iron-alpine3.18
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY --chown=node:node package*.json ./ COPY --chown=node:node package*.json ./