-
Notifications
You must be signed in to change notification settings - Fork 3
/
.drone.yml
68 lines (60 loc) · 1.41 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
65
66
67
68
---
kind: pipeline
type: kubernetes
name: compliance
platform:
os: linux
arch: arm64
trigger:
ref:
- refs/tags/**
- refs/pull/**
- refs/heads/**
event:
exclude:
- promote
steps:
- name: install-pkgs
image: ccr.ccs.tencentyun.com/ruilisi-pub/nextjs-base
commands:
- yarn install --pure-lockfile --cache-folder /tmp/cache/yarn-cache
environment:
NODE_ENV: development
- name: eslint
image: ccr.ccs.tencentyun.com/ruilisi-pub/nextjs-base
commands:
- yarn eslint
- name: tsc
image: ccr.ccs.tencentyun.com/ruilisi-pub/nextjs-base
commands:
- yarn tsc --noEmit
- name: stylelint
image: ccr.ccs.tencentyun.com/ruilisi-pub/nextjs-base
commands:
- yarn lint:style
---
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/react-media-previewer.git
- git push github ${branch:-${DRONE_BRANCH}} --force