Skip to content

Commit f60cd85

Browse files
committed
chore(deploy-queue): switch to self-hosted runners
1 parent 9bd5635 commit f60cd85

File tree

1 file changed

+28
-14
lines changed

1 file changed

+28
-14
lines changed

.github/workflows/deploy-queue.yml

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ env:
1818

1919
jobs:
2020
lint:
21-
runs-on: ubuntu-24.04
21+
runs-on:
22+
group: neondatabase-protected-runner-group
23+
labels: linux-ubuntu-latest
2224
services:
2325
postgres:
2426
image: postgres:15
@@ -84,7 +86,9 @@ jobs:
8486
echo "Linting and lockfile verification completed"
8587
8688
test-integration:
87-
runs-on: ubuntu-24.04
89+
runs-on:
90+
group: neondatabase-protected-runner-group
91+
labels: linux-ubuntu-latest
8892
strategy:
8993
fail-fast: false
9094
matrix:
@@ -143,16 +147,17 @@ jobs:
143147
echo "All tests completed successfully"
144148
145149
build-image:
146-
runs-on: ${{ matrix.runner }}
150+
runs-on:
151+
group: ${{ matrix.runner.group }}
152+
labels: ${{ matrix.runner.labels }}
147153
outputs:
148154
digest_x86_64: ${{ steps.export_digest.outputs.digest_x86_64 }}
149-
digest_aarch64: ${{ steps.export_digest.outputs.digest_aarch64 }}
150155
strategy:
151156
fail-fast: false
152157
matrix:
153158
runner:
154-
- ubuntu-24.04
155-
- ubuntu-24.04-arm
159+
- group: neondatabase-protected-runner-group
160+
labels: linux-ubuntu-latest
156161
permissions:
157162
contents: read
158163
packages: write
@@ -201,7 +206,9 @@ jobs:
201206
echo "digest_$(uname -m)=${digest#sha256:}" | tee -a "$GITHUB_OUTPUT"
202207
203208
merge-image:
204-
runs-on: ubuntu-24.04
209+
runs-on:
210+
group: neondatabase-protected-runner-group
211+
labels: linux-ubuntu-latest
205212
needs: [build-image]
206213
permissions:
207214
contents: read
@@ -241,19 +248,20 @@ jobs:
241248
run: |
242249
docker buildx imagetools create \
243250
$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
244-
${{ env.GHCR_REPO }}@sha256:${{ needs.build-image.outputs.digest_aarch64 }} \
245251
${{ env.GHCR_REPO }}@sha256:${{ needs.build-image.outputs.digest_x86_64 }}
246252
247253
- name: Inspect image
248254
run: docker buildx imagetools inspect ${{ env.GHCR_REPO }}:${{ steps.meta.outputs.version }}
249255

250256
build-binary:
251-
runs-on: ${{ matrix.runner }}
257+
runs-on:
258+
group: ${{ matrix.runner.group }}
259+
labels: ${{ matrix.runner.labels }}
252260
strategy:
253261
matrix:
254262
runner:
255-
- ubuntu-24.04
256-
- ubuntu-24.04-arm
263+
- group: neondatabase-protected-runner-group
264+
labels: linux-ubuntu-latest
257265
steps:
258266
- name: Harden the runner (Audit all outbound calls)
259267
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
@@ -286,7 +294,9 @@ jobs:
286294

287295
create-release:
288296
needs: [build-binary]
289-
runs-on: ubuntu-24.04
297+
runs-on:
298+
group: neondatabase-protected-runner-group
299+
labels: linux-ubuntu-latest
290300
permissions:
291301
contents: write
292302
steps:
@@ -347,7 +357,9 @@ jobs:
347357
test-e2e:
348358
if: github.event_name == 'pull_request' || github.ref_type == 'tag'
349359
needs: [create-release]
350-
runs-on: ubuntu-latest
360+
runs-on:
361+
group: neondatabase-protected-runner-group
362+
labels: linux-ubuntu-latest
351363
services:
352364
postgres:
353365
image: postgres:15
@@ -678,7 +690,9 @@ jobs:
678690
compat-tests:
679691
if: github.event_name == 'pull_request' || github.ref_type == 'tag'
680692
needs: [create-release]
681-
runs-on: ubuntu-latest
693+
runs-on:
694+
group: neondatabase-protected-runner-group
695+
labels: linux-ubuntu-latest
682696
services:
683697
postgres:
684698
image: postgres:15

0 commit comments

Comments
 (0)