diff --git a/.travis.yml b/.travis.yml index e9279d74ecac1ffdb8fa601f072902f668fed701..dc9d91e92dea494f3c629b1c582c29f0c3c4137c 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 1ca133b709335e2dad13b7bc7178522acc0297aa..6a256b6e51c07ac33038165b5257b99c13b03e7d 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 f552b6d0ce7a2e6ff8eccd654545db01da06622e..9b3d47bbb7719bcc65fdf47e0c5b2bdef9ddc3d3 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 86a20b7d28d3bf0d239589f630b66fed9d9d4db2..fcdd073c91200cc9f379a862b5766c7fee632757 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"