1
Fork 0
theorangeone.net-legacy/.gitlab-ci.yml
Jake Howard 7339a7b3c9
Use full LTS container
Hopefully this deals with gyp issues
2020-10-30 15:06:33 +00:00

37 lines
649 B
YAML

image: node:lts
variables:
HUGO_VERSION: "0.73.0"
GIT_SUBMODULE_STRATEGY: recursive
stages:
- test
- deploy
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .npm
- .cache
before_script:
- apt-get update && apt-get install -y curl
- curl -Lo /tmp/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.deb
- dpkg -i /tmp/hugo.deb
- touch .env
- npm ci --cache .npm --prefer-offline
test:
stage: test
script:
- ./scripts/test.sh
pages:
stage: deploy
script:
- ./scripts/release.sh
artifacts:
paths:
- public
only:
- master