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 volumes: - name: dist path: ./_site volumes: - name: dist host: path: ~/docs.hmcl.net