34 lines
744 B
YAML
34 lines
744 B
YAML
pipeline:
|
|
jekyll-build:
|
|
image: jekyll/jekyll:latest
|
|
commands:
|
|
- touch Gemfile.lock
|
|
- chmod a+w Gemfile.lock
|
|
- chown -R jekyll:jekyll /drone
|
|
- gem update --system
|
|
- bundle init
|
|
- gem install bundler
|
|
- bundle install
|
|
- bundle exec jekyll build
|
|
|
|
|
|
steps:
|
|
|
|
- name: discord notification
|
|
image: appleboy/drone-discord
|
|
settings:
|
|
webhook_id:
|
|
from_secret: discord_webhook_id
|
|
webhook_token:
|
|
from_secret: discord_webhook_token
|
|
avatar_url: https://git.sthope.dev/sthope/drone_test/raw/branch/master/rick.png
|
|
when:
|
|
event:
|
|
- push
|
|
- tag
|
|
- pull_request
|
|
- deployment
|
|
status:
|
|
- changed
|
|
- failure
|
|
- success |