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}}
|
2022-01-09 17:45:05 +00:00
|
|
|
{{build.link}}
|
|
|
|
{{datetime build.started}} - {{since build.started}}
|