forked from fhuegli/docker-shellinabox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
44 lines (41 loc) · 1016 Bytes
/
.drone.yml
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
42
43
44
kind: pipeline
name: default
steps:
- name: build
image: plugins/docker
settings:
custom_dns: 8.8.8.8
repo: sybex/shellinabox
tags:
- latest
- 1.2.${DRONE_BUILD_NUMBER}
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: deploy
image: sybex/drone-kubectl
settings:
kubernetes_server:
from_secret: kubernetes_server_url
kubernetes_token:
from_secret: kubernetes_server_token
commands:
- kubectl apply -f deployment.yaml
- kubectl -n tools rollout status deploy/shell-deploy
- name: notify
image: appleboy/drone-telegram
when:
status:
- success
- failure
settings:
token:
from_secret: pipeline_bot
to: 146910928
message: >
{{#success build.status}}
Build [{{build.number}}]({{build.link}}) for {{repo.name}} succeeded. Good job.
{{else}}
Build [{{build.number}}]({{build.link}}) for {{repo.name}} failed. Fix me please.
{{/success}}