-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
64 lines (53 loc) · 1.09 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
58
59
60
61
62
63
64
---
kind: pipeline
type: kubernetes
name: compliance
platform:
os: linux
arch: arm64
workspace:
path: /drone/src
trigger:
ref:
- refs/tags/**
- refs/heads/**
event:
exclude:
- promote
volumes:
- name: drone-cache-volume
host:
path: /var/lib/cache
image_pull_secrets:
- dockerconfig
steps:
- name: lint
image: ccr.ccs.tencentyun.com/ruilisi/feishu-api-bundler
commands:
- make lint
---
kind: pipeline
type: kubernetes
name: sync-to-github
platform:
os: linux
arch: arm64
workspace:
path: /drone/src
trigger:
ref:
- refs/heads/master
event:
exclude:
- promote
steps:
- name: sync commit
image: alpine/git
environment:
SSH_KEY:
from_secret: github_ssh_key
commands:
- mkdir -p /root/.ssh/ && echo $SSH_KEY | base64 -d > /root/.ssh/id_rsa && chmod 600 /root/.ssh/id_rsa
- ssh-keyscan -t rsa github.com > /root/.ssh/known_hosts && chmod 600 /root/.ssh/known_hosts
- git remote add github [email protected]:ruilisi/feishu-api.git
- git push github ${branch:-${DRONE_BRANCH}} --force