Skip to content

Commit 54e367b

Browse files
committed
ci: use ubuntu-22.04 instead of ubuntu-latest
1 parent 6116776 commit 54e367b

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

.github/workflows/ci.yaml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919

2020
jobs:
2121
changes:
22-
runs-on: ubuntu-latest
22+
runs-on: ubuntu-22.04
2323
outputs:
2424
docs-only: ${{ steps.filter.outputs.docs_count == steps.filter.outputs.all_count }}
2525
docs: ${{ steps.filter.outputs.docs }}
@@ -119,7 +119,7 @@ jobs:
119119
# update-flake:
120120
# needs: changes
121121
# if: needs.changes.outputs.gomod == 'true'
122-
# runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
122+
# runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-22.04' }}
123123
# steps:
124124
# - name: Checkout
125125
# uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
@@ -152,7 +152,7 @@ jobs:
152152
lint:
153153
needs: changes
154154
if: needs.changes.outputs.offlinedocs-only == 'false' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
155-
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
155+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-22.04' }}
156156
steps:
157157
- name: Harden Runner
158158
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
@@ -223,7 +223,7 @@ jobs:
223223

224224
gen:
225225
timeout-minutes: 8
226-
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
226+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-22.04' }}
227227
if: always()
228228
steps:
229229
- name: Harden Runner
@@ -277,7 +277,7 @@ jobs:
277277
fmt:
278278
needs: changes
279279
if: needs.changes.outputs.offlinedocs-only == 'false' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
280-
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
280+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-22.04' }}
281281
timeout-minutes: 7
282282
steps:
283283
- name: Harden Runner
@@ -309,15 +309,15 @@ jobs:
309309
run: ./scripts/check_unstaged.sh
310310

311311
test-go:
312-
runs-on: ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'coder' && 'depot-ubuntu-22.04-4' || matrix.os == 'macos-latest' && github.repository_owner == 'coder' && 'macos-latest-xlarge' || matrix.os == 'windows-2022' && github.repository_owner == 'coder' && 'windows-latest-16-cores' || matrix.os }}
312+
runs-on: ${{ matrix.os == 'ubuntu-22.04' && github.repository_owner == 'coder' && 'depot-ubuntu-22.04-4' || matrix.os == 'macos-latest' && github.repository_owner == 'coder' && 'macos-latest-xlarge' || matrix.os == 'windows-2022' && github.repository_owner == 'coder' && 'windows-latest-16-cores' || matrix.os }}
313313
needs: changes
314314
if: needs.changes.outputs.go == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
315315
timeout-minutes: 20
316316
strategy:
317317
fail-fast: false
318318
matrix:
319319
os:
320-
- ubuntu-latest
320+
- ubuntu-22.04
321321
- macos-latest
322322
- windows-2022
323323
steps:
@@ -370,7 +370,7 @@ jobs:
370370
api-key: ${{ secrets.DATADOG_API_KEY }}
371371

372372
test-go-pg:
373-
runs-on: ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'coder' && 'depot-ubuntu-22.04-4' || matrix.os == 'macos-latest' && github.repository_owner == 'coder' && 'macos-latest-xlarge' || matrix.os == 'windows-2022' && github.repository_owner == 'coder' && 'windows-latest-16-cores' || matrix.os }}
373+
runs-on: ${{ matrix.os == 'ubuntu-22.04' && github.repository_owner == 'coder' && 'depot-ubuntu-22.04-4' || matrix.os == 'macos-latest' && github.repository_owner == 'coder' && 'macos-latest-xlarge' || matrix.os == 'windows-2022' && github.repository_owner == 'coder' && 'windows-latest-16-cores' || matrix.os }}
374374
needs: changes
375375
if: needs.changes.outputs.go == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
376376
# This timeout must be greater than the timeout set by `go test` in
@@ -381,7 +381,7 @@ jobs:
381381
strategy:
382382
matrix:
383383
os:
384-
- ubuntu-latest
384+
- ubuntu-22.04
385385
- macos-latest
386386
- windows-2022
387387
steps:
@@ -454,7 +454,7 @@ jobs:
454454
# only block merging if tests on postgres 13 fail. Using a matrix strategy
455455
# here makes the check in the above `required` job rather complicated.
456456
test-go-pg-16:
457-
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
457+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-22.04' }}
458458
needs:
459459
- changes
460460
if: needs.changes.outputs.go == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
@@ -496,7 +496,7 @@ jobs:
496496
api-key: ${{ secrets.DATADOG_API_KEY }}
497497

498498
test-go-race:
499-
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-16' || 'ubuntu-latest' }}
499+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-16' || 'ubuntu-22.04' }}
500500
needs: changes
501501
if: needs.changes.outputs.go == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
502502
timeout-minutes: 25
@@ -534,7 +534,7 @@ jobs:
534534
api-key: ${{ secrets.DATADOG_API_KEY }}
535535

536536
test-go-race-pg:
537-
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-16' || 'ubuntu-latest' }}
537+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-16' || 'ubuntu-22.04' }}
538538
needs: changes
539539
if: needs.changes.outputs.go == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
540540
timeout-minutes: 25
@@ -581,7 +581,7 @@ jobs:
581581
# These tests are skipped in the main go test jobs because they require root
582582
# and mess with networking.
583583
test-go-tailnet-integration:
584-
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
584+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-22.04' }}
585585
needs: changes
586586
# Unnecessary to run on main for now
587587
if: needs.changes.outputs.tailnet-integration == 'true' || needs.changes.outputs.ci == 'true'
@@ -608,7 +608,7 @@ jobs:
608608
run: make test-tailnet-integration
609609

610610
test-js:
611-
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
611+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-22.04' }}
612612
needs: changes
613613
if: needs.changes.outputs.ts == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
614614
timeout-minutes: 20
@@ -630,7 +630,7 @@ jobs:
630630
working-directory: site
631631

632632
test-e2e:
633-
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-4' || 'ubuntu-latest' }}
633+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-4' || 'ubuntu-22.04' }}
634634
needs: changes
635635
strategy:
636636
fail-fast: false
@@ -707,7 +707,7 @@ jobs:
707707

708708
chromatic:
709709
# REMARK: this is only used to build storybook and deploy it to Chromatic.
710-
runs-on: ubuntu-latest
710+
runs-on: ubuntu-22.04
711711
needs: changes
712712
if: needs.changes.outputs.ts == 'true' || needs.changes.outputs.ci == 'true'
713713
steps:
@@ -784,7 +784,7 @@ jobs:
784784
offlinedocs:
785785
name: offlinedocs
786786
needs: changes
787-
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
787+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-22.04' }}
788788
if: needs.changes.outputs.offlinedocs == 'true' || needs.changes.outputs.ci == 'true' || needs.changes.outputs.docs == 'true'
789789

790790
steps:
@@ -845,7 +845,7 @@ jobs:
845845
make build/coder_docs_"$(./scripts/version.sh)".tgz
846846
847847
required:
848-
runs-on: ubuntu-latest
848+
runs-on: ubuntu-22.04
849849
needs:
850850
- fmt
851851
- lint
@@ -1108,7 +1108,7 @@ jobs:
11081108

11091109
deploy:
11101110
name: "deploy"
1111-
runs-on: ubuntu-latest
1111+
runs-on: ubuntu-22.04
11121112
timeout-minutes: 30
11131113
needs:
11141114
- changes
@@ -1178,7 +1178,7 @@ jobs:
11781178
kubectl --namespace coder rollout status deployment/coder-provisioner
11791179
11801180
deploy-wsproxies:
1181-
runs-on: ubuntu-latest
1181+
runs-on: ubuntu-22.04
11821182
needs: build
11831183
if: github.ref == 'refs/heads/main' && !github.event.pull_request.head.repo.fork
11841184
steps:
@@ -1213,7 +1213,7 @@ jobs:
12131213
# runs sqlc-vet to ensure all queries are valid. This catches any mistakes
12141214
# in migrations or sqlc queries that makes a query unable to be prepared.
12151215
sqlc-vet:
1216-
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
1216+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-22.04' }}
12171217
needs: changes
12181218
if: needs.changes.outputs.db == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
12191219
steps:

0 commit comments

Comments
 (0)