-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.drone.yml
50 lines (45 loc) · 1 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
---
kind: pipeline
name: default
type: docker
platform:
os: linux
arch: amd64
steps:
- name: build
image: node
commands:
- npm install
- npm run build
when:
event:
- push
- tag
- name: upload-test-to-oss
image: trylife/aliyun-ossutil:latest
environment:
OSS_KEY_ID:
from_secret: OSS_KEY_ID
OSS_KEY_SECRET:
from_secret: OSS_KEY_SECRET
commands:
- ossutil config -L CH -e "oss-cn-beijing.aliyuncs.com" -i $OSS_KEY_ID -k $OSS_KEY_SECRET
- ossutil cp -rf ./dist oss://sy-ui/yuzeng/tencent-tke/test
when:
event:
- push
- name: deployment-to-oss
image: trylife/aliyun-ossutil:latest
environment:
OSS_KEY_ID:
from_secret: OSS_KEY_ID
OSS_KEY_SECRET:
from_secret: OSS_KEY_SECRET
commands:
- ossutil config -L CH -e "oss-cn-beijing.aliyuncs.com" -i $OSS_KEY_ID -k $OSS_KEY_SECRET
- ossutil cp -rf ./dist oss://rancher2-drivers/pandaria/ui/cluster-driver-tencent/${DRONE_TAG}
when:
event:
- tag
node:
instance: agent-amd64