doc: install nodejs and curl before execution of npm

This commit is contained in:
Leon Xu committed 2021-08-26 23:47:29 -07:00
1 parent 23ed0debb4
commit 176bfa0ea0
1 file changed
+11 -16
+11 -16
View File
@@ -44,22 +44,17 @@ If I want GitLab CI/CD to deploy my website each time that I push to GitLab, I c
<br> <br>
```yaml ```yaml
build website: image: ubuntu:latest
stage: build before_script:
# Using the latest of ubuntu image - apt update -qy # Check for update
image: ubuntu:latest - apt install -y lftp # Install lftp
- apt install curl # Install curl
cache: - curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
paths: - apt install nodejs # Install NodeJS
- node_modules/ # Node modules and dependencies - npm install -g hexo-cli # Install Hexo itself
- npm install # Install Hexo modules and dependencies
before_script: - npm install hexo-renderer-pug # Install Butterfly pug
- apt-get update -qy # Check for update - npm install hexo-renderer-stylus # Install stylus renderer
- apt-get install -y lftp # Install lftp
- npm install -g hexo-cli # Install Hexo itself
- npm install # Install Hexo modules and dependencies
- npm install hexo-renderer-pug # Install Butterfly pug
- npm install hexo-renderer-stylus # Install stylus renderer
deploy via lftp: deploy via lftp:
stage: deploy stage: deploy