diff --git a/.drone.yml b/.drone.yml index f858d9a..481ec18 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,31 +1,68 @@ -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 +kind: pipeline +type: docker +name: default + +steps: +- name: jekyll + 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 + +- 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: - 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 \ No newline at end of file +# discord: +# name: discord +# 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 \ No newline at end of file