Skip to content

Commit

Permalink
BC-7995 Raise node version to 22 (#5332)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyedwiper authored Nov 19, 2024
1 parent 73df13f commit 146f6a0
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

env:
MONGODB_VERSION: 6.0
NODE_VERSION: '20'
NODE_VERSION: '22'
jobs:
migration:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:

env:
MONGODB_VERSION: 6.0
NODE_VERSION: '20'
NODE_VERSION: '22'
jobs:
feathers_tests_cov:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM docker.io/node:20 AS git
FROM docker.io/node:22 AS git

RUN mkdir /app && chown -R node:node /app
WORKDIR /app
COPY .git .
RUN git config --global --add safe.directory /app && echo "{\"sha\": \"$(git rev-parse HEAD)\", \"version\": \"$(git describe --tags --abbrev=0)\", \"commitDate\": \"$(git log -1 --format=%cd --date=format:'%Y-%m-%dT%H:%M:%SZ')\", \"birthdate\": \"$(date +%Y-%m-%dT%H:%M:%SZ)\"}" > /app/serverversion

FROM docker.io/node:20-alpine
FROM docker.io/node:22-alpine
ENV TZ=Europe/Berlin
RUN apk add --no-cache git make python3
# to run ldap sync as script curl is needed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ data:
git clone https://github.com/hpi-schul-cloud/schulcloud-server.git
cd /schulcloud-server
git checkout {{ SCHULCLOUD_SERVER_IMAGE_TAG }}
npm install
npm ci
until mongosh $DATABASE__URL --eval "print(\"waited for connection\")"
do
sleep 1
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"contributors": [],
"bugs": {},
"engines": {
"node": "20",
"node": "22",
"npm": ">=9"
},
"mikro-orm": {
Expand Down

0 comments on commit 146f6a0

Please sign in to comment.