Node v14 as repo default
This commit is contained in:
+6
-6
@@ -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:
|
||||
|
||||
+2
-2
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user