-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy path.drone.yml
More file actions
32 lines (30 loc) · 723 Bytes
/
Copy path.drone.yml
File metadata and controls
32 lines (30 loc) · 723 Bytes
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
---
kind: pipeline
name: default
clone:
depth: 1
steps:
- name: convert
image: soulteary/mdbook
depends_on: [ clone ]
pull: if-not-exists
commands:
- mdbook build -d dist
- name: publish
image: soulteary/tencent-cos
depends_on: [ convert ]
pull: if-not-exists
environment:
SECRET_ID:
from_secret: SECRET_ID
SECRET_KEY:
from_secret: SECRET_KEY
BUCKET:
from_secret: BUCKET
REGION:
from_secret: REGION
commands:
- sed -i -e "s/<%SECRET_ID%>/$${SECRET_ID}/" -e "s/<%SECRET_KEY%>/$${SECRET_KEY}/" -e "s/<%BUCKET%>/$${BUCKET}/" -e "s/<%REGION%>/$${REGION}/" .cos.conf
- cp .cos.conf /root/
- cd dist && ls -al
- coscmd upload -f --delete -rs ./ /