blog/.gitlab-ci.yml

22 lines
665 B
YAML
Raw Normal View History

image: node:latest # Use latest version of Node.js
2016-02-29 14:25:06 +00:00
pages:
cache: # add cache to 'node_modules' for speeding up builds
paths:
- node_modules/ # Node modules and dependencies
2016-02-29 14:25:06 +00:00
script:
- npm install -g snyk hexo-cli
- npm install # install node modules
2018-09-25 01:39:12 +00:00
- snyk auth $SNYK_TOKEN
- snyk protect # Apply patches to node modules
2018-09-25 01:39:12 +00:00
- snyk test # Check node modules for vulnerability
2018-09-30 09:37:49 +00:00
# - hexo deploy # deploy the site. Uncomment this line for gitlab pages
2016-02-29 14:25:06 +00:00
artifacts:
paths:
2018-09-30 09:37:49 +00:00
# - public # deploy to the 'public' folder. Uncomment this line for gitlab pages
only:
- master # this job will affect only the 'master' branch