-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e004f7
commit 5b0276c
Showing
3 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
PACKAGE_VERSION="$1" # version number has to start with a digit, for example 2023123101; "main" for the latest development version | ||
PACKAGE_ITERATION="$2" # 2, if there is a bugfix for this package (not for the mp) | ||
|
||
|
||
apt-get -y update | ||
apt-get -y install git | ||
apt-get -y install python3-venv python3-pip | ||
|
||
# dependencies for gem / fpm | ||
apt-get install -y ruby ruby-dev rubygems build-essential | ||
|
||
# install fpm using gem | ||
gem install fpm | ||
|
||
# prepare venv | ||
. /repos/monitoring-plugins/build/shared/venv.sh | ||
|
||
# compile using pyinstaller | ||
. /repos/monitoring-plugins/build/shared/compile.sh | ||
|
||
# prepare files for fpm | ||
. /repos/monitoring-plugins/build/shared/prepare-fpm.sh | ||
|
||
# create packages using fpm | ||
cd /tmp/fpm/check-plugins | ||
fpm --output-type deb | ||
cp *.deb /build/ | ||
|
||
cd /tmp/fpm/notification-plugins | ||
fpm --output-type deb | ||
cp *.deb /build/ |