2022-01-09 11:08:42 +00:00
kind : pipeline
type : docker
name : default
steps :
2022-01-09 11:16:43 +00:00
- name : say-hello
image : busybox
commands :
- echo hello-world
2022-01-09 11:08:42 +00:00
- name : backend
image : composer
commands :
- cd backend && composer install
- name : frontend
image : node
commands :
2022-01-09 17:23:59 +00:00
- cd frontend && npm install
- name : discord notification
image : appleboy/drone-discord
settings :
webhook_id :
from_secret : discord_webhook_id
webhook_token :
from_secret : discord_webhook_token
2022-01-09 17:42:05 +00:00
username : Drone
message : >
{{#success build.status}}
{{build.event}} : build #{{build.number}} succeeded.
{{else}}
{{build.event}} : build #{{build.number}} failed.
{{/success}}
Build Duration : {{since build.started}}
{{#success build.status}}
✅ **{{repo.name}} - Build #{{build.number}}**
- Started at {{datetime build.started \"2006-01-02 15:04:05\" \"America/Chicago\"}} and finished at {{datetime build.finished \"2006-01-02 15:04:05\" \"America/Chicago\"}}
- Build Duration : {{duration build.started build.finished}}
{{build.link}}
{{else}}
❌ **{{repo.name}} - Build #{{build.number}}
- Started at {{datetime build.started \"2006-01-02 15:04:05\" \n\"America/Chicago\"}} and finished at {{datetime build.finished \"2006-01-02 15:04:05\" \"America/Chicago\"}}
- Build Duration : {{duration build.started build.finished}}
{{build.link}}
{{/success}}