Skip to content

Commit

Permalink
Upgrade node to version 22
Browse files Browse the repository at this point in the history
  • Loading branch information
juffalow committed Aug 27, 2024
1 parent a96e415 commit a466c4b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: 'yarn'
- name: Install dependencies
run: yarn install
Expand All @@ -41,10 +41,10 @@ jobs:
MYSQL_ROOT_PASSWORD: p4ssw0rd
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: 'yarn'
- name: Install dependencies
run: yarn install
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set variables
Expand Down
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
FROM node:20-alpine AS build
FROM node:22-alpine AS build

WORKDIR /home/node

COPY . .
RUN yarn install --frozen-lockfile && yarn build

FROM node:20-alpine
FROM node:22-alpine

ENV NODE_ENV production

RUN apk update && apk upgrade --no-cache

RUN addgroup --gid 3000 --system juffgroup \
&& adduser --uid 2000 --system --ingroup juffgroup juffuser
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
- 'mysql_data:/mysql/data'

application:
image: node:20-alpine
image: node:22-alpine
working_dir: /home/node
command: sh -c "yarn install --frozen-lockfile && yarn start"
depends_on:
Expand Down

0 comments on commit a466c4b

Please sign in to comment.