From bb03fe7d71489e5f3e8c007716f97a23e61b17c6 Mon Sep 17 00:00:00 2001 From: Yi Liu <yi.liu@eclipse-foundation.org> Date: Fri, 8 Jan 2021 15:27:41 -0500 Subject: [PATCH] update node Signed-off-by: Yi Liu <yi.liu@eclipse-foundation.org> --- .travis.yml | 2 +- Dockerfile | 2 +- Jenkinsfile | 2 +- netlify.toml | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e9279d7..dc9d91e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: node_js matrix: include: - - node_js: 10 + - node_js: 12 env: HUGO_ENV=dev - node_js: 12 env: HUGO_ENV=production diff --git a/Dockerfile b/Dockerfile index 1ca133b..6a256b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ ARG NGINX_IMAGE_TAG=stable-alpine-for-hugo FROM debian:10-slim AS builder ARG HUGO_VERSION=0.76.5 -ARG NODE_VERSION=10.15.0 +ARG NODE_VERSION=12.18.3 RUN apt-get update && apt-get install -y \ build-essential \ diff --git a/Jenkinsfile b/Jenkinsfile index f552b6d..9b3d47b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,7 +29,7 @@ pipeline { parameters { string(name: 'hugo_version', defaultValue: '0.76.5', description: 'The Hugo version that will be used to build the website. Must match versions speficied on https://github.com/gohugoio/hugo/releases.') - string(name: 'node_version', defaultValue: '10.15.3', description: 'The Node.js version that will be used to build the website. Must match versions specified on https://nodejs.org/en/download/releases/. It is adivsed to stick to LTS versions.') + string(name: 'node_version', defaultValue: '12.18.3', description: 'The Node.js version that will be used to build the website. Must match versions specified on https://nodejs.org/en/download/releases/. It is adivsed to stick to LTS versions.') } environment { diff --git a/netlify.toml b/netlify.toml index 86a20b7..fcdd073 100644 --- a/netlify.toml +++ b/netlify.toml @@ -2,6 +2,9 @@ publish = "public" command = "npm run build_netlify && hugo --gc --minify -b https://eclipsefdn-sparkplug.netlify.com" +[build.environment] +NODE_VERSION = "12.18.3" + [context.production.environment] HUGO_VERSION = "0.76.5" HUGO_ENV = "production" -- GitLab