Skip to content

A platform for community discussion. Free, open, simple.

Reapply "DEV: update runners to debian-12" (#28899)

Michael Fitz-Payne92f7b3e789e1
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
index 0b3e2515d7d..ccadfb89777 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -10,7 +10,7 @@ permissions:
jobs:
triage:
if: github.actor != 'discourse-translator-bot'
- runs-on: ubuntu-latest
+ runs-on: debian-12
steps:
- uses: actions/labeler@v5
diff --git a/.github/workflows/licenses.yml b/.github/workflows/licenses.yml
index e22f37c16e9..9e7a6384beb 100644
--- a/.github/workflows/licenses.yml
+++ b/.github/workflows/licenses.yml
@@ -17,7 +17,7 @@ jobs:
build:
if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror'
name: run
- runs-on: ubuntu-latest
+ runs-on: debian-12
container: discourse/discourse_test:slim
timeout-minutes: 10
diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml
index bf55d086f20..13990395090 100644
--- a/.github/workflows/linting.yml
+++ b/.github/workflows/linting.yml
@@ -17,7 +17,7 @@ jobs:
build:
if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror'
name: run
- runs-on: ubuntu-latest
+ runs-on: debian-12
container: discourse/discourse_test:slim
timeout-minutes: 30
diff --git a/.github/workflows/migration-tests.yml b/.github/workflows/migration-tests.yml
index 188d154093f..f39602de7eb 100644
--- a/.github/workflows/migration-tests.yml
+++ b/.github/workflows/migration-tests.yml
@@ -24,7 +24,7 @@ jobs:
tests:
if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror'
name: Tests with Ruby ${{ matrix.ruby }}
- runs-on: 'ubuntu-latest'
+ runs-on: debian-12
container: discourse/discourse_test:slim
timeout-minutes: 20
diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml
index 5d7148008cd..2d2fcf65a60 100644
--- a/.github/workflows/release-notes.yml
+++ b/.github/workflows/release-notes.yml
@@ -20,7 +20,7 @@ permissions:
jobs:
build:
name: run
- runs-on: ubuntu-latest
+ runs-on: debian-12
container: discourse/discourse_test:slim
timeout-minutes: 10
env:
diff --git a/.github/workflows/stale-pr-closer.yml b/.github/workflows/stale-pr-closer.yml
index f5f0702c60e..b0469f4f9ad 100644
--- a/.github/workflows/stale-pr-closer.yml
+++ b/.github/workflows/stale-pr-closer.yml
@@ -9,7 +9,7 @@ permissions:
jobs:
stale:
- runs-on: ubuntu-latest
+ runs-on: debian-12
steps:
- uses: actions/stale@v9
with:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index c920a99c8ee..76a40e4e64c 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -29,7 +29,7 @@ jobs:
build:
if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror'
name: ${{ matrix.target }} ${{ matrix.build_type }} # Update fetch-job-id step if changing this
- runs-on: ${{ (matrix.build_type == 'annotations') && 'ubuntu-latest' || 'ubuntu-22.04-8core' }}
+ runs-on: ${{ (vars.GITHUB_REF_NAME == 'main' ) && 'debian-12' || 'ubuntu-22.04-8core' }}
container: discourse/discourse_test:slim${{ (matrix.build_type == 'frontend' || matrix.build_type == 'system') && '-browsers' || '' }}
timeout-minutes: 20
@@ -358,7 +358,7 @@ jobs:
core_frontend_tests:
if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror'
name: core frontend (${{ matrix.browser }})
- runs-on: ubuntu-22.04-8core
+ runs-on: ${{ (vars.GITHUB_REF_NAME == 'main' ) && 'debian-12' || 'ubuntu-22.04-8core' }}
container:
image: discourse/discourse_test:slim-browsers
options: --user discourse