|
18 | 18 |
|
19 | 19 | jobs: |
20 | 20 | lint: |
21 | | - runs-on: ubuntu-24.04 |
| 21 | + runs-on: |
| 22 | + group: neondatabase-protected-runner-group |
| 23 | + labels: linux-ubuntu-latest |
22 | 24 | services: |
23 | 25 | postgres: |
24 | 26 | image: postgres:15 |
|
84 | 86 | echo "Linting and lockfile verification completed" |
85 | 87 |
|
86 | 88 | test-integration: |
87 | | - runs-on: ubuntu-24.04 |
| 89 | + runs-on: |
| 90 | + group: neondatabase-protected-runner-group |
| 91 | + labels: linux-ubuntu-latest |
88 | 92 | strategy: |
89 | 93 | fail-fast: false |
90 | 94 | matrix: |
@@ -143,16 +147,17 @@ jobs: |
143 | 147 | echo "All tests completed successfully" |
144 | 148 |
|
145 | 149 | build-image: |
146 | | - runs-on: ${{ matrix.runner }} |
| 150 | + runs-on: |
| 151 | + group: ${{ matrix.runner.group }} |
| 152 | + labels: ${{ matrix.runner.labels }} |
147 | 153 | outputs: |
148 | 154 | digest_x86_64: ${{ steps.export_digest.outputs.digest_x86_64 }} |
149 | | - digest_aarch64: ${{ steps.export_digest.outputs.digest_aarch64 }} |
150 | 155 | strategy: |
151 | 156 | fail-fast: false |
152 | 157 | matrix: |
153 | 158 | runner: |
154 | | - - ubuntu-24.04 |
155 | | - - ubuntu-24.04-arm |
| 159 | + - group: neondatabase-protected-runner-group |
| 160 | + labels: linux-ubuntu-latest |
156 | 161 | permissions: |
157 | 162 | contents: read |
158 | 163 | packages: write |
@@ -201,7 +206,9 @@ jobs: |
201 | 206 | echo "digest_$(uname -m)=${digest#sha256:}" | tee -a "$GITHUB_OUTPUT" |
202 | 207 |
|
203 | 208 | merge-image: |
204 | | - runs-on: ubuntu-24.04 |
| 209 | + runs-on: |
| 210 | + group: neondatabase-protected-runner-group |
| 211 | + labels: linux-ubuntu-latest |
205 | 212 | needs: [build-image] |
206 | 213 | permissions: |
207 | 214 | contents: read |
@@ -241,19 +248,20 @@ jobs: |
241 | 248 | run: | |
242 | 249 | docker buildx imagetools create \ |
243 | 250 | $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ |
244 | | - ${{ env.GHCR_REPO }}@sha256:${{ needs.build-image.outputs.digest_aarch64 }} \ |
245 | 251 | ${{ env.GHCR_REPO }}@sha256:${{ needs.build-image.outputs.digest_x86_64 }} |
246 | 252 |
|
247 | 253 | - name: Inspect image |
248 | 254 | run: docker buildx imagetools inspect ${{ env.GHCR_REPO }}:${{ steps.meta.outputs.version }} |
249 | 255 |
|
250 | 256 | build-binary: |
251 | | - runs-on: ${{ matrix.runner }} |
| 257 | + runs-on: |
| 258 | + group: ${{ matrix.runner.group }} |
| 259 | + labels: ${{ matrix.runner.labels }} |
252 | 260 | strategy: |
253 | 261 | matrix: |
254 | 262 | runner: |
255 | | - - ubuntu-24.04 |
256 | | - - ubuntu-24.04-arm |
| 263 | + - group: neondatabase-protected-runner-group |
| 264 | + labels: linux-ubuntu-latest |
257 | 265 | steps: |
258 | 266 | - name: Harden the runner (Audit all outbound calls) |
259 | 267 | uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 |
@@ -286,7 +294,9 @@ jobs: |
286 | 294 |
|
287 | 295 | create-release: |
288 | 296 | needs: [build-binary] |
289 | | - runs-on: ubuntu-24.04 |
| 297 | + runs-on: |
| 298 | + group: neondatabase-protected-runner-group |
| 299 | + labels: linux-ubuntu-latest |
290 | 300 | permissions: |
291 | 301 | contents: write |
292 | 302 | steps: |
@@ -347,7 +357,9 @@ jobs: |
347 | 357 | test-e2e: |
348 | 358 | if: github.event_name == 'pull_request' || github.ref_type == 'tag' |
349 | 359 | needs: [create-release] |
350 | | - runs-on: ubuntu-latest |
| 360 | + runs-on: |
| 361 | + group: neondatabase-protected-runner-group |
| 362 | + labels: linux-ubuntu-latest |
351 | 363 | services: |
352 | 364 | postgres: |
353 | 365 | image: postgres:15 |
@@ -678,7 +690,9 @@ jobs: |
678 | 690 | compat-tests: |
679 | 691 | if: github.event_name == 'pull_request' || github.ref_type == 'tag' |
680 | 692 | needs: [create-release] |
681 | | - runs-on: ubuntu-latest |
| 693 | + runs-on: |
| 694 | + group: neondatabase-protected-runner-group |
| 695 | + labels: linux-ubuntu-latest |
682 | 696 | services: |
683 | 697 | postgres: |
684 | 698 | image: postgres:15 |
|
0 commit comments