diff --git a/.drone.yml b/.drone.yml index 5a9165a2..4a6fcd94 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,9 @@ steps: commands: - bundle config mirror.https://rubygems.org https://mirrors.cloud.tencent.com/rubygems - bundle install --verbose - - bundle exec jekyll build --trace --verbose --config _config.yml,_config.drone.yml + - | + CACHE_FLAG=$(echo "$DRONE_COMMIT_MESSAGE" | grep -q '\[skip cache\]' && echo "--disable-disk-cache" || echo "") + bundle exec jekyll build --trace --verbose --config _config.yml,_config.drone.yml $CACHE_FLAG volumes: - name: dist path: /drone/src/_site