From f4071f983a068a3b345576879ac61eb8bb104ff1 Mon Sep 17 00:00:00 2001 From: Daniel Alejandro Gallegos Date: Wed, 21 Jun 2023 19:18:35 -0400 Subject: [PATCH] use node package and hugo install from apt? --- .gitlab-ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 35f1138..13c0aa2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,14 +1,19 @@ -image: registry.gitlab.com/pages/hugo/hugo_extended:latest +image: node:latest variables: GIT_SUBMODULE_STRATEGY: recursive -build: - image: node:latest +install: + stage: install script: - npm install + artifacts: + paths: + - node_modules/ test: + before_script: + - apt-get update -qq && apt-get install -y -qq hugo script: - hugo except: @@ -16,6 +21,8 @@ test: - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH pages: + before_script: + - apt-get update -qq && apt-get install -y -qq hugo script: - hugo artifacts: