Skip to content
Snippets Groups Projects
Commit bb03fe7d authored by Yi Liu's avatar Yi Liu
Browse files

update node


Signed-off-by: default avatarYi Liu <yi.liu@eclipse-foundation.org>
parent 79063f3c
No related branches found
No related tags found
No related merge requests found
language: node_js
matrix:
include:
- node_js: 10
- node_js: 12
env: HUGO_ENV=dev
- node_js: 12
env: HUGO_ENV=production
......
......@@ -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 \
......
......@@ -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 {
......
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment