Add Jenkinsfile for build automation

This commit is contained in:
Gamerboy59 2024-09-08 18:28:03 +02:00 committed by GitHub
commit bf0ece92ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 302 additions and 0 deletions

10
.build/DEB/control Normal file
View file

@ -0,0 +1,10 @@
Package: rpxy
Version: @BUILD_VERSION@-1
Maintainer: Jun Kurihara <kurihara@ieee.org>
Homepage: https://github.com/junkurihara/rust-rpxy
Architecture: amd64
Depends: systemd
Recommends: rpxy-webui
Priority: optional
Section: base
Description: A simple and ultrafast reverse-proxy serving multiple domain names with TLS termination, written in Rust

9
.build/DEB/postinst Normal file
View file

@ -0,0 +1,9 @@
#!/bin/bash
set -e
systemctl daemon-reload
systemctl enable rpxy
systemctl start rpxy
exit 0

8
.build/DEB/prerm Normal file
View file

@ -0,0 +1,8 @@
#!/bin/bash
set -e
systemctl stop rpxy || true
systemctl disable rpxy || true
exit 0