mirror of https://gitlab.com/curben/blog
Remove duplicate scripts
This commit is contained in:
parent
80140fa10b
commit
2053a2c2de
|
@ -9,22 +9,21 @@ cache: # add cache to 'node_modules' for speeding up builds
|
||||||
paths:
|
paths:
|
||||||
- node_modules/ # Node modules and dependencies
|
- node_modules/ # Node modules and dependencies
|
||||||
|
|
||||||
before_script: # install tools before jobs
|
|
||||||
- npm install -g hexo-cli snyk
|
|
||||||
- snyk auth $SNYK_TOKEN
|
|
||||||
|
|
||||||
snyk-test:
|
snyk-test:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- npm install # install node modules
|
- npm install # install node modules
|
||||||
|
- npm install -g snyk
|
||||||
|
- snyk auth $SNYK_TOKEN
|
||||||
- snyk protect # Apply patches to node modules
|
- snyk protect # Apply patches to node modules
|
||||||
- snyk test # Verify node modules for vulnerability
|
- snyk test # Check node modules for vulnerability
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
|
- npm install -g hexo-cli
|
||||||
- hexo deploy # deploy the site
|
- hexo deploy # deploy the site
|
||||||
- find public -type f -iregex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -execdir gzip -f --keep {} \; # Compress files
|
- find public -type f -iregex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -execdir gzip -f --keep {} \; # Compress files
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
Loading…
Reference in New Issue