use node package and hugo install from apt?
This commit is contained in:
parent
d749e741d5
commit
f4071f983a
1 changed files with 10 additions and 3 deletions
|
@ -1,14 +1,19 @@
|
||||||
image: registry.gitlab.com/pages/hugo/hugo_extended:latest
|
image: node:latest
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
GIT_SUBMODULE_STRATEGY: recursive
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
|
|
||||||
build:
|
install:
|
||||||
image: node:latest
|
stage: install
|
||||||
script:
|
script:
|
||||||
- npm install
|
- npm install
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- node_modules/
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
before_script:
|
||||||
|
- apt-get update -qq && apt-get install -y -qq hugo
|
||||||
script:
|
script:
|
||||||
- hugo
|
- hugo
|
||||||
except:
|
except:
|
||||||
|
@ -16,6 +21,8 @@ test:
|
||||||
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
|
before_script:
|
||||||
|
- apt-get update -qq && apt-get install -y -qq hugo
|
||||||
script:
|
script:
|
||||||
- hugo
|
- hugo
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
Reference in a new issue