Skip to content

Commit 203645b

Browse files
tboergersettermjd
authored andcommitted
Integrate drone and automate process (#11)
* Drop upstream docs * Drop gitlab-ci config * Replace empty readme * Preview listening on 0.0.0.0 * Use correct AGPL-3.0 license * Reorder gitignore * Clean and reorder package.json * Update yarn lockfile * Integrate drone automation
1 parent f0dc1b6 commit 203645b

24 files changed

+776
-1344
lines changed

.drone.yml

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
workspace:
2+
base: /drone
3+
path: src
4+
5+
branches:
6+
- master
7+
8+
clone:
9+
git:
10+
image: plugins/git:next
11+
pull: true
12+
13+
pipeline:
14+
cache-restore:
15+
image: plugins/s3-cache:1
16+
pull: true
17+
secrets: [ cache_s3_endpoint, cache_s3_access_key, cache_s3_secret_key ]
18+
restore: true
19+
when:
20+
local: false
21+
22+
frontend-deps:
23+
image: webhippie/nodejs:latest
24+
pull: true
25+
commands:
26+
- yarn install
27+
28+
frontend-lint:
29+
image: webhippie/nodejs:latest
30+
pull: true
31+
commands:
32+
- gulp lint
33+
34+
frontend-build:
35+
image: webhippie/nodejs:latest
36+
pull: true
37+
commands:
38+
- gulp pack
39+
40+
cache-rebuild:
41+
image: plugins/s3-cache:1
42+
pull: true
43+
secrets: [ cache_s3_endpoint, cache_s3_access_key, cache_s3_secret_key ]
44+
rebuild: true
45+
mount:
46+
- node_modules
47+
when:
48+
local: false
49+
event: [ push ]
50+
51+
cache-flush:
52+
image: plugins/s3-cache:1
53+
pull: true
54+
secrets: [ cache_s3_endpoint, cache_s3_access_key, cache_s3_secret_key ]
55+
flush: true
56+
flush_age: 14
57+
when:
58+
local: false
59+
event: [ push ]
60+
61+
upload-artifact:
62+
image: plugins/s3:1
63+
pull: true
64+
secrets: [ aws_access_key_id, aws_secret_access_key ]
65+
bucket: documentation
66+
endpoint: https://minio.owncloud.com
67+
path_style: true
68+
strip_prefix: build/
69+
source: build/ui-bundle.zip
70+
target: /
71+
when:
72+
local: false
73+
event: [ push ]
74+
75+
github-release:
76+
image: plugins/github-release:1
77+
pull: true
78+
secrets: [ github_token ]
79+
files:
80+
- build/ui-bundle.zip
81+
when:
82+
local: false
83+
event: [ tag ]
84+
85+
notify-slack:
86+
image: plugins/slack
87+
secrets: [ slack_webhook ]
88+
channel: documentation
89+
when:
90+
local: false
91+
event: [ push, tag ]
92+
status: [ success, failure ]

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/build/
2-
/node_modules/
32
/public/
3+
4+
/node_modules/

.gitlab-ci.yml

-55
This file was deleted.

0 commit comments

Comments
 (0)