-
Notifications
You must be signed in to change notification settings - Fork 5
/
.drone.yml
57 lines (55 loc) · 1.18 KB
/
.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
45
46
47
48
49
50
51
52
53
54
55
56
57
---
kind: pipeline
name: docs
steps:
- name: build
image: python:3-bullseye
volumes:
- name: dockersock
path: /var/run/docker.sock
environment:
DEPLOY_KEY:
from_secret: GITHUB_DEPLOY_KEY
commands:
- |-
if [ -n "$SSH_PROXY" ]; then
if [ -n "$DEBIAN_MIRROR" ]; then
sed -i "s@http://.\+\.debian\.org/debian@$${DEBIAN_MIRROR}@g" /etc/apt/sources.list
fi
apt-get update
apt-get -y install connect-proxy
mkdir -p ~/.ssh/
echo "ProxyCommand connect -H $SSH_PROXY %h %p" > ~/.ssh/config
fi
- export DEPLOY_KEY
- bash ./scripts/ci-build-docs.sh
node:
nuke: true
---
kind: pipeline
name: notification
clone:
disable: true
steps:
- name: youdu
image: registry.wlf.com/drone-youdu
failure: ignore
settings:
url:
from_secret: YOUDU_URL
buin:
from_secret: YOUDU_BUIN
app_id:
from_secret: YOUDU_APP_ID
aes_key:
from_secret: YOUDU_AES_KEY
from:
from_secret: YOUDU_FROM
to:
from_secret: YOUDU_TO
depends_on:
- docs
trigger:
status:
- success
- failure