@@ -7,15 +7,48 @@ permissions:
77 contents : write
88
99jobs :
10- build-mkp :
10+ build-mkp-cmk2.3 :
11+ name : Build MKP for CMK2.3
12+ runs-on : ubuntu-latest
13+ container :
14+ image : checkmk/check-mk-raw:2.3.0-daily
15+ steps :
16+ - name : Install tools
17+ run : apt update && apt-get -y install sudo jq tree hub
18+ - name : Create Checkmk Site
19+ run : /docker-entrypoint.sh /bin/true
20+ - name : Repo Checkout
21+ uses : actions/checkout@v4
22+ with : { fetch-depth: 0 }
23+ - name : Update GITHUB_PATH
24+ run : echo "/omd/sites/cmk/bin" >> $GITHUB_PATH
25+ - name : Extract version
26+ id : version
27+ run : echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
28+ # tmate
29+ # - name: Setup tmate session
30+ # uses: mxschmitt/action-tmate@v3
31+ - name : Link repository files into container
32+ run : .devcontainer/linkfiles.sh full
33+ - name : Build MKP
34+ id : cmkpkg
35+ run : |
36+ chmod +x .devcontainer/build.sh
37+ .devcontainer/build.sh "${{ steps.version.outputs.version }}"
38+ - name : Attach MKP to Release
39+ uses : softprops/action-gh-release@v2
40+ with :
41+ files : ${{ steps.cmkpkg.outputs.pkgfile }}
42+ tag_name : ${{ github.ref_name }}
43+
44+ build-mkp-cmk2.4 :
1145 name : Build MKP for CMK2.4
1246 runs-on : ubuntu-latest
1347 container :
1448 image : checkmk/check-mk-raw:2.4.0-daily
1549 steps :
1650 - name : Install tools
17- # TODO: remove vim
18- run : apt update && apt-get -y install sudo jq tree hub vim
51+ run : apt update && apt-get -y install sudo jq tree hub
1952 - name : Create Checkmk Site
2053 run : /docker-entrypoint.sh /bin/true
2154 - name : Repo Checkout
2659 - name : Extract version
2760 id : version
2861 run : echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
29-
3062 # tmate
3163 # - name: Setup tmate session
3264 # uses: mxschmitt/action-tmate@v3
3769 run : |
3870 chmod +x .devcontainer/build.sh
3971 .devcontainer/build.sh "${{ steps.version.outputs.version }}"
40-
4172 - name : Attach MKP to Release
4273 uses : softprops/action-gh-release@v2
4374 with :
4475 files : ${{ steps.cmkpkg.outputs.pkgfile }}
4576 tag_name : ${{ github.ref_name }}
77+
78+ build-mkp-cmk2.5 :
79+ name : Build MKP for CMK2.5
80+ runs-on : ubuntu-latest
81+ container :
82+ image : checkmk/check-mk-raw:2.5.0-daily
83+ steps :
84+ - name : Install tools
85+ run : apt update && apt-get -y install sudo jq tree hub
86+ - name : Create Checkmk Site
87+ run : /docker-entrypoint.sh /bin/true
88+ - name : Repo Checkout
89+ uses : actions/checkout@v4
90+ with : { fetch-depth: 0 }
91+ - name : Update GITHUB_PATH
92+ run : echo "/omd/sites/cmk/bin" >> $GITHUB_PATH
93+ - name : Extract version
94+ id : version
95+ run : echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
96+ # tmate
97+ # - name: Setup tmate session
98+ # uses: mxschmitt/action-tmate@v3
99+ - name : Link repository files into container
100+ run : .devcontainer/linkfiles.sh full
101+ - name : Build MKP
102+ id : cmkpkg
103+ run : |
104+ chmod +x .devcontainer/build.sh
105+ .devcontainer/build.sh "${{ steps.version.outputs.version }}"
106+ - name : Attach MKP to Release
107+ uses : softprops/action-gh-release@v2
108+ with :
109+ files : ${{ steps.cmkpkg.outputs.pkgfile }}
110+ tag_name : ${{ github.ref_name }}
0 commit comments