java8/.drone.yml

43 lines
1.1 KiB
YAML
Raw Normal View History

2019-10-12 04:00:55 +05:00
---
kind: pipeline
type: docker
name: build
steps:
2019-10-12 06:35:35 +05:00
- name: notify-start
2019-12-22 00:53:14 +05:00
image: pztrn/discordrone
2019-10-12 06:35:35 +05:00
settings:
webhook_id:
from_secret: discord_webhook_id
webhook_token:
from_secret: discord_webhook_secret
message: 'Starting building **{{repo.name}}#{{build.number}}@{{build.commit}}** @ {{datetime build.started "02-Jan-2006 15:04:05 MST" "Asia/Yekaterinburg"}} (See {{build.link}} for logs).'
2019-10-12 06:35:35 +05:00
- name: docker
image: plugins/docker
settings:
username:
from_secret: dockerhub_user
password:
from_secret: dockerhub_password
repo: pztrn/java8
auto_tag: true
- name: notify-end
when:
status:
- success
- failure
2019-12-22 00:53:14 +05:00
image: pztrn/discordrone
2019-10-12 06:35:35 +05:00
settings:
webhook_id:
from_secret: discord_webhook_id
webhook_token:
from_secret: discord_webhook_secret
message: "
{{#success build.status}}
**{{repo.name}}#{{build.number}}@{{build.commit}}** deployed.
2019-10-12 06:35:35 +05:00
{{ else }}
**{{repo.name}}#{{build.number}}@{{build.commit}}** failed. See {{build.link}}.
2019-12-22 00:53:14 +05:00
{{/success}}"