1
Fork 0
theorangeone.net-legacy/.gitlab-ci.yml

38 lines
656 B
YAML
Raw Normal View History

2020-10-09 19:42:11 +01:00
image: "node:lts-slim"
variables:
HUGO_VERSION: "0.73.0"
GIT_SUBMODULE_STRATEGY: recursive
2020-10-09 19:42:11 +01:00
2020-10-09 20:14:43 +01:00
stages:
- test
- deploy
2020-10-09 19:42:11 +01:00
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
2020-10-09 19:42:11 +01:00
- dpkg -i /tmp/hugo.deb
- touch .env
2020-10-09 20:14:37 +01:00
- npm ci --cache .npm --prefer-offline
2020-10-09 19:42:11 +01:00
test:
stage: test
script:
- ./scripts/test.sh
pages:
stage: deploy
script:
- ./scripts/release.sh
artifacts:
paths:
- public
only:
- master