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---
2100kind : pipeline
3101type : docker
@@ -8,7 +106,7 @@ concurrency:
8106
9107steps :
10108 - name : Shellcheck
11- image : koalaman/shellcheck-alpine
109+ image : koalaman/shellcheck-alpine:v0.8.0
12110 commands :
13111 - ./test/shellcheck.sh
14112 - name : PHP 8.1
@@ -18,14 +116,55 @@ steps:
18116
19117trigger :
20118 event : [ pull_request, push ]
21- ref :
22- - refs/heads/staging/*
23- - refs/heads/beta
24- - refs/heads/release
25- - refs/heads/main
26- - refs/pull/*/head
27119
120+ ---
121+ kind : pipeline
122+ type : docker
123+ name : Push to beta atp server
124+
125+ platform :
126+ os : linux
127+ arch : amd64
128+
129+ steps :
130+ - name : Build
131+ image : debian:bullseye
132+ commands :
133+ - ln -snf /etc/localtime && echo CET > /etc/timezone
134+ - ./src/hst_autocompile.sh --dontinstalldeps --hestia --debug --cross --noinstall --keepbuild --debug '~localsrc'
135+ - mkdir -p ./hestia/
136+ - mv /tmp/hestiacp-src/deb/*.deb ./hestia/
137+ - name : Upload
138+ image : appleboy/drone-scp
139+ settings :
140+ host :
141+ from_secret : apt_server
142+ user : root
143+ key :
144+ from_secret : ssh_key
145+ port : 22
146+ command_timeout : 2m
147+ target : /root/
148+ source :
149+ - ./hestia/*
150+ - name : Publish
151+ image : appleboy/drone-ssh
152+ settings :
153+ host :
154+ from_secret : apt_server
155+ user : root
156+ key :
157+ from_secret : ssh_key
158+ port : 22
159+ command_timeout : 2m
160+ script :
161+ - freight-add ./hestia/*.deb apt/bionic apt/focal apt/jammy apt/stretch apt/buster apt/bullseye
162+ - freight-cache
163+ - rm -fr ./hestia/
164+
165+ trigger :
166+ event : [ promote]
28167
29168---
30169kind : signature
31- hmac : 4eec34ee92f63737d6a976140e6e54adf637ebbb4836b17a083c560a4440c54f
170+ hmac : f89a311b0f023c6ee92dbdb56bcd23ec663ef9242269a6b70c1c222bac4380ee
0 commit comments