doc: install nodejs and curl before execution of npm
This commit is contained in:
1 parent
23ed0debb4
commit
176bfa0ea0
1 file changed
+11
-16
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user