Skip to content

Commit

Permalink
chore: upgrade node to 18
Browse files Browse the repository at this point in the history
  • Loading branch information
2fd committed Sep 5, 2023
1 parent 2f189e7 commit 5eca296
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 220 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/master_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
registry-paths: ${{ steps.push-to-quay.outputs.registry-paths }}
steps:
- uses: actions/checkout@v2
- name: node.js 16

- name: node.js 18
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18.8.0
registry-url: https://registry.npmjs.org/
cache: 'npm'

- name: set up git
run: git config --global url."https://github.com/".insteadOf "ssh://[email protected]/"

Expand All @@ -37,7 +37,7 @@ jobs:
./Dockerfile
build-args: |
version_number=${{ github.sha }}
- name: Push To quay.io
id: push-to-quay
uses: redhat-actions/push-to-registry@v2
Expand All @@ -50,7 +50,7 @@ jobs:

- name: Print image url
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"

deployment:
needs: [build-push]
name: "Deploy to: dev prd"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/next_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
registry-paths: ${{ steps.push-to-quay.outputs.registry-paths }}
steps:
- uses: actions/checkout@v2
- name: node.js 16

- name: node.js 18
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18.8.0
registry-url: https://registry.npmjs.org/
cache: 'npm'

- name: set up git
run: git config --global url."https://github.com/".insteadOf "ssh://[email protected]/"

Expand All @@ -35,7 +35,7 @@ jobs:
tags: ${{ github.sha }} latest
dockerfiles: |
./Dockerfile
- name: Push To quay.io
id: push-to-quay
uses: redhat-actions/push-to-registry@v2
Expand All @@ -48,7 +48,7 @@ jobs:

- name: Print image url
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"

deployment:
needs: [build-push]
name: "Deploy to: dev prd"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull_request_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: node.js 16
- name: node.js 18
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18.8.0
registry-url: https://registry.npmjs.org/
cache: 'npm'

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.14-alpine as compiler
FROM node:18.8-alpine as compiler
ARG version_number

RUN apk add --no-cache openssh-client \
Expand Down Expand Up @@ -47,7 +47,7 @@ RUN NODE_OPTIONS="--max-old-space-size=4096" npm run build:server
RUN NODE_OPTIONS="--max-old-space-size=4096" VERSION_NUMBER=$version_number npm run build:front
RUN npm prune --production

FROM node:16.14-alpine
FROM node:18.8-alpine
WORKDIR /app

RUN rm -rf \
Expand Down
Loading

0 comments on commit 5eca296

Please sign in to comment.