Update '.drone.yml'
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
sthope 2021-09-02 02:59:49 +02:00
parent 3113734407
commit 74673f5aa1

View File

@ -1,31 +1,68 @@
pipeline: kind: pipeline
jekyll-build: type: docker
image: jekyll/jekyll:latest name: default
commands:
- touch Gemfile.lock steps:
- chmod a+w Gemfile.lock - name: jekyll
- chown -R jekyll:jekyll /drone image: jekyll/jekyll:latest
- gem update --system commands:
- gem install bundler - touch Gemfile.lock
- bundle install - chmod a+w Gemfile.lock
- bundle exec jekyll build - chown -R jekyll:jekyll /drone
- gem update --system
- gem install bundler
- bundle install
- bundle exec jekyll build
- name: discord
pull: always
image: appleboy/drone-discord:1
avatar_url: https://git.sthope.dev/sthope/drone_test/raw/branch/master/rick.png
environment:
DISCORD_WEBHOOK_ID:
from_secret: discord_webhook_id
DISCORD_WEBHOOK_TOKEN:
from_secret: discord_webhook_token
when:
event:
- push
- tag
- pull_request
- deployment
status:
- changed
- failure
- success
# pipeline:
# jekyll-build:
# image: jekyll/jekyll:latest
# commands:
# - touch Gemfile.lock
# - chmod a+w Gemfile.lock
# - chown -R jekyll:jekyll /drone
# - gem update --system
# - gem install bundler
# - bundle install
# - bundle exec jekyll build
discord-notification: # discord:
image: appleboy/drone-discord # name: discord
settings: # image: appleboy/drone-discord
webhook_id: # settings:
from_secret: discord_webhook_id # webhook_id:
webhook_token: # from_secret: discord_webhook_id
from_secret: discord_webhook_token # webhook_token:
avatar_url: https://git.sthope.dev/sthope/drone_test/raw/branch/master/rick.png # from_secret: discord_webhook_token
when: # avatar_url: https://git.sthope.dev/sthope/drone_test/raw/branch/master/rick.png
event: # when:
- push # event:
- tag # - push
- pull_request # - tag
- deployment # - pull_request
status: # - deployment
- changed # status:
- failure # - changed
- success # - failure
# - success