generated from jiuka/checkmk_template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated build script and build container v2.2 everywhere
- Loading branch information
1 parent
be597ea
commit 11e3912
Showing
5 changed files
with
16 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
#!/bin/bash | ||
|
||
NAME=$(python -c 'print(eval(open("package").read())["name"])') | ||
rm /omd/sites/cmk/var/check_mk/packages/* ||: | ||
ln -s $WORKSPACE/package /omd/sites/cmk/var/check_mk/packages/$NAME | ||
NAME=$(python3 -c 'print(eval(open("package").read())["name"])') | ||
VERSION=$(python3 -c 'print(eval(open("package").read())["version"])') | ||
rm -f $NAME-$VERSION.mkp \ | ||
/omd/sites/cmk/var/cat check_mk/packages/${NAME}-*.mkp \ | ||
/omd/sites/cmk/var/check_mk/packages_local/${NAME}-*.mkp ||: | ||
|
||
mkp -v pack $NAME | ||
mkp -v package package 2>&1 | sed '/Installing$/Q' ||: | ||
|
||
cp /omd/sites/cmk/var/check_mk/packages_local/$NAME-$VERSION.mkp . | ||
|
||
mkp inspect $NAME-$VERSION.mkp | ||
|
||
# Set Outputs for GitHub Workflow steps | ||
if [ -n "$GITHUB_WORKSPACE" ]; then | ||
echo "pkgfile=$(ls *.mkp)" >> $GITHUB_OUTPUT | ||
echo "pkgfile=${NAME}-${VERSION}.mkp" >> $GITHUB_OUTPUT | ||
echo "pkgname=${NAME}" >> $GITHUB_OUTPUT | ||
VERSION=$(python -c 'print(eval(open("package").read())["version"])') | ||
echo "pkgversion=$VERSION" >> $GITHUB_OUTPUT | ||
echo "pkgversion=$VERSION" >> $GITHUB_OUTPUT | ||
fi |
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