Skip to content

Commit 5ed350f

Browse files
committed
Restore .drone.ylm
1 parent 350005c commit 5ed350f

File tree

1 file changed

+146
-1
lines changed

1 file changed

+146
-1
lines changed

.drone.yml

Lines changed: 146 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,101 @@
1+
---
2+
kind: pipeline
3+
type: ssh
4+
name: Ubuntu | Nginx + Apache2
5+
6+
concurrency:
7+
limit: 1
8+
9+
server:
10+
host:
11+
from_secret: server_address
12+
user:
13+
from_secret: username
14+
ssh_key:
15+
from_secret: ssh_key
16+
17+
platform:
18+
os: linux
19+
arch: amd64
20+
21+
steps:
22+
- name: Download submodules
23+
image: alpine/git
24+
commands:
25+
- git submodule update --init --recursive
26+
- name: Build Hestia package and install
27+
commands:
28+
- ./src/hst_autocompile.sh --hestia --install '~localsrc'
29+
- name: Run system / user tests
30+
commands:
31+
- bats ./test/test.bats
32+
- name: Run restore tests
33+
commands:
34+
- bats ./test/restore.bats
35+
- name: Run config tests
36+
commands:
37+
- bats ./test/config-tests.bats
38+
39+
trigger:
40+
event: [ pull_request, push ]
41+
ref:
42+
- refs/heads/staging/*
43+
- refs/heads/beta
44+
- refs/heads/release
45+
- refs/heads/main
46+
- refs/pull/*/head
47+
48+
---
49+
kind: pipeline
50+
type: ssh
51+
name: Debian | Nginx
52+
53+
concurrency:
54+
limit: 1
55+
56+
server:
57+
host:
58+
from_secret: server_address2
59+
user:
60+
from_secret: username
61+
ssh_key:
62+
from_secret: ssh_key
63+
64+
platform:
65+
os: linux
66+
arch: amd64
67+
68+
steps:
69+
- name: Download submodules
70+
image: alpine/git
71+
commands:
72+
- git submodule update --init --recursive
73+
- name: Build Hestia package install
74+
commands:
75+
- ./src/hst_autocompile.sh --hestia --install '~localsrc'
76+
- name: Run system / user tests
77+
commands:
78+
- bats ./test/test.bats
79+
- name: Run restore tests
80+
commands:
81+
- bats ./test/restore.bats
82+
- name: Run Letsencrypt test against Staging
83+
commands:
84+
- cp /root/le-env.sh /tmp/hestia-le-env.sh
85+
- bats ./test/letsencrypt.bats
86+
- name: Run config tests
87+
commands:
88+
- bats ./test/config-tests.bats
89+
90+
trigger:
91+
event: [ pull_request, push ]
92+
ref:
93+
- refs/heads/staging/*
94+
- refs/heads/beta
95+
- refs/heads/release
96+
- refs/heads/main
97+
- refs/pull/*/head
98+
199
---
2100
kind: pipeline
3101
type: docker
@@ -25,7 +123,54 @@ trigger:
25123
- refs/heads/main
26124
- refs/pull/*/head
27125

126+
---
127+
kind: pipeline
128+
type: docker
129+
name: Push to beta atp server
130+
131+
platform:
132+
os: linux
133+
arch: amd64
134+
135+
steps:
136+
- name: Build
137+
image: debian:bullseye
138+
commands:
139+
- ln -snf /etc/localtime && echo CET > /etc/timezone
140+
- ./src/hst_autocompile.sh --dontinstalldeps --hestia --debug --cross --noinstall --keepbuild --debug '~localsrc'
141+
- mkdir -p ./hestia/
142+
- mv /tmp/hestiacp-src/deb/*.deb ./hestia/
143+
- name: Upload
144+
image: appleboy/drone-scp
145+
settings:
146+
host:
147+
from_secret: apt_server
148+
user: root
149+
key:
150+
from_secret: ssh_key
151+
port: 22
152+
command_timeout: 2m
153+
target: /root/
154+
source:
155+
- ./hestia/*
156+
- name: Publish
157+
image: appleboy/drone-ssh
158+
settings:
159+
host:
160+
from_secret: apt_server
161+
user: root
162+
key:
163+
from_secret: ssh_key
164+
port: 22
165+
command_timeout: 2m
166+
script:
167+
- freight-add ./hestia/*.deb apt/bionic apt/focal apt/jammy apt/stretch apt/buster apt/bullseye
168+
- freight-cache
169+
- rm -fr ./hestia/
170+
171+
trigger:
172+
event: [ promote]
28173

29174
---
30175
kind: signature
31-
hmac: 4eec34ee92f63737d6a976140e6e54adf637ebbb4836b17a083c560a4440c54f
176+
hmac: a191a477aa337f2efff534022164906ff20ef2b6340ec808d128c09a06d7eaa3

0 commit comments

Comments
 (0)