|
1 | | -name: Build Prometheus2 EL10 RPM |
| 1 | +name: Build Prometheus2 and Systemd Exporter EL10 RPM |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
|
16 | 16 | default: true |
17 | 17 |
|
18 | 18 | jobs: |
19 | | - build-rpm: |
20 | | - name: Build RPM for EL10 |
| 19 | + build-prometheus2-rpm: |
| 20 | + name: Build Prometheus2 RPM for EL10 |
21 | 21 | runs-on: ubuntu-latest |
22 | 22 | steps: |
23 | 23 | - name: Checkout source |
|
57 | 57 | draft: ${{ inputs.draft }} |
58 | 58 | files: _dist10_RPM/*.rpm |
59 | 59 |
|
| 60 | + build-systemd_exporter-rpm: |
| 61 | + name: Build Systemd Exporter RPM for EL10 |
| 62 | + runs-on: ubuntu-latest |
| 63 | + steps: |
| 64 | + - name: Checkout source |
| 65 | + uses: actions/checkout@v4 |
| 66 | + |
| 67 | + - name: Install Deps |
| 68 | + run: | |
| 69 | + sudo apt-get update |
| 70 | + sudo apt-get install -y make |
| 71 | +
|
| 72 | + - name: Build Rocky10 Docker Image |
| 73 | + run: make build-rocky10-image |
| 74 | + |
| 75 | + - name: Build Systemd Exporter RPM |
| 76 | + run: make build10-systemd_exporter |
| 77 | + |
| 78 | + - name: Upload Binary RPM |
| 79 | + uses: actions/upload-artifact@v4 |
| 80 | + with: |
| 81 | + name: systemd_exporter-el10-rpm |
| 82 | + path: _dist10_RPM/*.rpm |
| 83 | + if-no-files-found: error |
| 84 | + |
| 85 | + - name: Upload Source RPM |
| 86 | + uses: actions/upload-artifact@v4 |
| 87 | + with: |
| 88 | + name: systemd_exporter-el10-srpm |
| 89 | + path: _dist10_SRPM/*.rpm |
| 90 | + if-no-files-found: error |
| 91 | + |
| 92 | + - name: Create GitHub Release |
| 93 | + if: github.event_name == 'workflow_dispatch' && inputs.release_name != '' |
| 94 | + uses: softprops/action-gh-release@v2 |
| 95 | + with: |
| 96 | + tag_name: ${{ inputs.release_name }} |
| 97 | + name: ${{ inputs.release_name }} |
| 98 | + draft: ${{ inputs.draft }} |
| 99 | + files: _dist10_RPM/*.rpm |
| 100 | + |
0 commit comments