forked from cs3org/cs3apis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
62 lines (53 loc) · 1.14 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
---
kind: pipeline
type: docker
name: build-and-publish
platform:
os: linux
arch: amd64
trigger:
event:
exclude:
- pull_request
- tag
- promote
- rollback
steps:
- name: build-and-publish
pull: always
image: cs3org/cs3apis:latest
environment:
SSH_KEY:
from_secret: deploy_key
commands:
# See https://github.com/drone/drone/issues/2692
# write the ssh key to disk
- mkdir /root/.ssh
- echo -n "$SSH_KEY" > /root/.ssh/id_rsa
- chmod 600 /root/.ssh/id_rsa
- stat /root/.ssh/id_rsa
# add github to known hosts
- touch /root/.ssh/known_hosts
- chmod 600 /root/.ssh/known_hosts
- ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts 2> /dev/null
- cs3apis-build -all -git-ssh # compile, build and publish all available languages
---
kind: pipeline
type: docker
name: build-only
platform:
os: linux
arch: amd64
trigger:
event:
include:
- pull_request
- tag
- promote
- rollback
steps:
- name: build-only
pull: always
image: cs3org/cs3apis:latest
commands:
- cs3apis-build -only-build # compile, build and publish all available languages