-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* get build scripts and other requirements from main * adjust github ci/cd for debian12 * add debian12 build scripts * ci/cd: make sure to use the current branch for the build scripts * ci/cd: improve handling of branches * ci/cd: better variable naming * ci/cd: testing needs to use the same commit as the building workflow * ci/cd: add cleanup task * ci/cd: add back jobs for other distros * ci/cd: adjust whitespace
- Loading branch information
1 parent
4dafb65
commit 86c5d47
Showing
12 changed files
with
164 additions
and
63 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
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-dev python3-venv | ||
|
||
# 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/ |
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
Oops, something went wrong.