This commit is contained in:
parent
3113734407
commit
74673f5aa1
57
.drone.yml
57
.drone.yml
@ -1,5 +1,9 @@
|
|||||||
pipeline:
|
kind: pipeline
|
||||||
jekyll-build:
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: jekyll
|
||||||
image: jekyll/jekyll:latest
|
image: jekyll/jekyll:latest
|
||||||
commands:
|
commands:
|
||||||
- touch Gemfile.lock
|
- touch Gemfile.lock
|
||||||
@ -10,15 +14,15 @@ pipeline:
|
|||||||
- bundle install
|
- bundle install
|
||||||
- bundle exec jekyll build
|
- bundle exec jekyll build
|
||||||
|
|
||||||
|
- name: discord
|
||||||
discord-notification:
|
pull: always
|
||||||
image: appleboy/drone-discord
|
image: appleboy/drone-discord:1
|
||||||
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
|
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:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
@ -29,3 +33,36 @@ pipeline:
|
|||||||
- changed
|
- changed
|
||||||
- failure
|
- failure
|
||||||
- success
|
- 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:
|
||||||
|
# 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
|
Loading…
x
Reference in New Issue
Block a user