Node v14 as repo default

This commit is contained in:
Aarni Halinen
2021-01-15 22:32:24 +02:00
parent 261334006b
commit e56fdb098a
5 changed files with 13 additions and 11 deletions
+6 -6
View File
@@ -7,7 +7,7 @@ stages:
- deploy
install:
image: node:12
image: node:14
stage: setup
script:
- npm ci
@@ -18,27 +18,27 @@ install:
es:lint:
image: node:12
image: node:14
needs: ["install"]
stage: lint
script:
- npm run lint:es
css:lint:
image: node:12
image: node:14
needs: ["install"]
stage: lint
script:
- npm run lint:css
# test:unit:
# image: node:12
# image: node:14
# stage: test
# script:
# - npm run test:unit
build:
image: node:12
image: node:14
needs: ["install"]
stage: build
script:
@@ -56,7 +56,7 @@ build:
- .next/cache/
test:e2e:
image: circleci/node:12-browsers
image: circleci/node:14-browsers
needs: ["install", "build"]
stage: test
script:
+1
View File
@@ -0,0 +1 @@
14
+2 -2
View File
@@ -1,4 +1,4 @@
FROM node:12-alpine as builder
FROM node:14-alpine as builder
COPY package.json package-lock.json ./
RUN npm install
@@ -6,7 +6,7 @@ RUN npm install
COPY . ./
RUN NODE_ENV=development npm run build
FROM node:12-alpine as server
FROM node:14-alpine as server
WORKDIR /www
COPY package.json package-lock.json next.config.js ./
RUN npm ci --only=production
+2 -2
View File
@@ -1,4 +1,4 @@
FROM node:12-alpine as builder
FROM node:14-alpine as builder
COPY package.json package-lock.json ./
RUN npm install
@@ -6,7 +6,7 @@ RUN npm install
COPY . ./
RUN npm run build
FROM node:12-alpine as server
FROM node:14-alpine as server
WORKDIR /www
COPY package.json package-lock.json next.config.js ./
RUN npm ci --only=production
+2 -1
View File
@@ -17,7 +17,8 @@ Minimal starter kit with hot module replacement (HMR) for rapid development.
## Installation
1. Clone/download repo
2. `npm install`
2. Install node v14
3. `npm install`
## Usage