Add naemon spec #40
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
name: RPM Build | |
on: push | |
jobs: | |
build-naemon-core: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build Naemon core packages | |
id: naemon | |
uses: UCBoulder/oit-sepe-rpmbuild@master | |
with: | |
spec_file: "naemon-core.spec" | |
additional_repos: '["epel-release"]' | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Naemon Core RPMs | |
path: ${{ steps.naemon.outputs.rpm_dir_path }} | |
build-naemon: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build Naemon packages | |
id: naemon | |
uses: UCBoulder/oit-sepe-rpmbuild@master | |
with: | |
spec_file: "naemon.spec" | |
additional_repos: '["epel-release"]' | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Naemon RPMs | |
path: ${{ steps.naemon.outputs.rpm_dir_path }} | |
build-merlin: | |
runs-on: ubuntu-latest | |
needs: build-naemon | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: Naemon Core RPMs | |
- name: build Merlin packages | |
id: merlin | |
uses: UCBoulder/oit-sepe-rpmbuild@master | |
with: | |
spec_file: "merlin.spec" | |
additional_repos: '["epel-release", "/github/workspace/x86_64/libnaemon-1.4.1-0.x86_64.rpm", "/github/workspace/x86_64/naemon-devel-1.4.1-0.x86_64.rpm"]' | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Merlin RPMs | |
path: ${{ steps.merlin.outputs.rpm_dir_path }} | |
publish-rpms: | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
runs-on: ubuntu-latest | |
needs: | |
- build-naemon-core | |
- build-naemon | |
- build-merlin | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
merge-multiple: True | |
- uses: ncipollo/release-action@v1 | |
with: | |
artifacts: 'x86_64/*' | |