|
1 | | -name: Build Prometheus2 EL10 RPM |
| 1 | +name: Build EL10 RPMs |
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 | + |
| 101 | + build-node_exporter-rpm: |
| 102 | + name: Build Node Exporter RPM for EL10 |
| 103 | + runs-on: ubuntu-latest |
| 104 | + steps: |
| 105 | + - name: Checkout source |
| 106 | + uses: actions/checkout@v4 |
| 107 | + |
| 108 | + - name: Install Deps |
| 109 | + run: | |
| 110 | + sudo apt-get update |
| 111 | + sudo apt-get install -y make |
| 112 | +
|
| 113 | + - name: Build Rocky10 Docker Image |
| 114 | + run: make build-rocky10-image |
| 115 | + |
| 116 | + - name: Build Node Exporter RPM |
| 117 | + run: make build10-node_exporter |
| 118 | + |
| 119 | + - name: Upload Binary RPM |
| 120 | + uses: actions/upload-artifact@v4 |
| 121 | + with: |
| 122 | + name: node_exporter-el10-rpm |
| 123 | + path: _dist10_RPM/*.rpm |
| 124 | + if-no-files-found: error |
| 125 | + |
| 126 | + - name: Upload Source RPM |
| 127 | + uses: actions/upload-artifact@v4 |
| 128 | + with: |
| 129 | + name: node_exporter-el10-srpm |
| 130 | + path: _dist10_SRPM/*.rpm |
| 131 | + if-no-files-found: error |
| 132 | + |
| 133 | + - name: Create GitHub Release |
| 134 | + if: github.event_name == 'workflow_dispatch' && inputs.release_name != '' |
| 135 | + uses: softprops/action-gh-release@v2 |
| 136 | + with: |
| 137 | + tag_name: ${{ inputs.release_name }} |
| 138 | + name: ${{ inputs.release_name }} |
| 139 | + draft: ${{ inputs.draft }} |
| 140 | + files: _dist10_RPM/*.rpm |
| 141 | + |
0 commit comments