forked from YOURLS/YOURLS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.drone.yml
More file actions
41 lines (38 loc) · 1 KB
/
.drone.yml
File metadata and controls
41 lines (38 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
kind: pipeline
type: kubernetes
name: default
steps:
- name: build-latest
image: plugins/kaniko
settings:
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
registry:
from_secret: DOCKER_REGISTRY
repo: registry.dev.onxp.net/onxp/yourls
tags: latest
when:
branch:
- develop
- name: notification
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: WEBHOOK_ID
webhook_token:
from_secret: WEBHOOK_TOKEN
username: DroneCI
avatar_url: https://cdn.discordapp.com/attachments/892612412014997557/1153503922162511892/drone-ci.png
message: >
{{#success build.status}}
Build **yourls** is *done*. Check on https://drone.dev.onxp.net/onxpnet/yourls/{{build.number}} for more details.
{{else}}
Build **yourls** is *failed*. Check on https://drone.dev.onxp.net/onxpnet/yourls/{{build.number}} for more details.
{{/success}}
trigger:
branch:
- develop
event:
- push