You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
737 B

kind: pipeline
type: docker
name: default
clone:
depth: 1
steps:
- name: build
image: jekyll/jekyll:4.2.2
commands:
- touch Gemfile.lock
- chmod a+w Gemfile.lock
- chown -R jekyll:jekyll /drone
- gem sources --add https://mirrors.tuna.tsinghua.edu.cn/rubygems/ --remove https://rubygems.org/
- bundle config mirror.https://rubygems.org https://mirrors.tuna.tsinghua.edu.cn/rubygems
- bundle install
- bundle exec jekyll build
- bash scripts/copy_index_json.sh
volumes:
- name: dist
path: /drone/src/_site
- name: cache
path: /drone/src/.jekyll-cache
volumes:
- name: dist
host:
path: /home/ubuntu/docs.hmcl.net
- name: cache
host:
path: /home/ubuntu/cache/docs.hmcl.net