use node package and hugo install from apt?

This commit is contained in:
Daniel Alejandro Gallegos 2023-06-21 19:18:35 -04:00
parent d749e741d5
commit f4071f983a
No known key found for this signature in database
GPG key ID: 28F1CF39B0DE3E64

View file

@ -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: