-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
53 lines (46 loc) · 1.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
51
52
53
---
kind: pipeline
name: default
platform:
os: linux
arch: amd64
steps:
- name: prepare_files
pull: default
image: alpine:3.7
commands:
- source versions.txt
- export BACKEND_VERSION
- export FRONTEND_VERSION
- echo $${BACKEND_VERSION}
- echo $${FRONTEND_VERSION}
- mkdir /tmp/infomark
- cd /tmp/infomark
- wget https://github.com/infomark-org/infomark/releases/download/$${BACKEND_VERSION}/infomark.tar.gz
- tar -xzvf infomark.tar.gz
- rm infomark.tar.gz
- cp /tmp/infomark/api.yaml /drone/src/docs/static/swagger/api.yaml
- cp /tmp/infomark/infomark /drone/src/infomark
- name: build_docs
pull: never
image: patwie/hugo:v1
commands:
- mkdir /tmp/console_docs
- ./infomark console utils doc /tmp/console_docs
- cp -r /tmp/console_docs/* /drone/src/docs/content/guides/console
- rm /drone/src/infomark
- cd /drone/src/docs
- hugo version
- hugo
- name: publish_pages
pull: never
image: patwie/deploy_docs:v1
commands:
- /opt/publish.sh
trigger:
branch:
- master
---
kind: signature
hmac: bb4bec36a477409590e313879afc0bc272d02646384092a7d6881de925ebb4f9
...