From 701b5a4def9103e5e4fc2e87560dc5da5a7c37a1 Mon Sep 17 00:00:00 2001 From: alxndrsn Date: Mon, 2 Nov 2026 06:49:49 +0000 Subject: [PATCH] ci: use specific ubuntu version Lock ubuntu version to major release, as using a non-specific target (`ubuntu-latest`) causes build breakages when OS-level dependency naming, availability & versions change. --- .github/workflows/close-issues.yml | 2 +- .github/workflows/main.yml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/close-issues.yml b/.github/workflows/close-issues.yml index 2ad7c542d..2041ab485 100644 --- a/.github/workflows/close-issues.yml +++ b/.github/workflows/close-issues.yml @@ -8,7 +8,7 @@ on: jobs: close_issues: if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'next' - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: issues: write pull-requests: read diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9f63be1e9..2371d1cbf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ on: jobs: test-misc: # quick, simple checks timeout-minutes: 2 - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - run: docker --version - run: docker compose version @@ -30,13 +30,13 @@ jobs: - run: cd test && npm run test:github-actions test-envsub: timeout-minutes: 2 - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v5 - run: cd test/envsub && ./run-tests.sh test-nginx: timeout-minutes: 4 - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v5 - uses: actions/setup-node@v5 @@ -62,13 +62,13 @@ jobs: run: cd test/nginx && docker compose -f nginx.test.docker-compose.yml logs --no-log-prefix sentry-mock test-secrets: timeout-minutes: 2 - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v5 - run: ./test/test-secrets.sh test-service: timeout-minutes: 5 - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v5 with: @@ -87,7 +87,7 @@ jobs: - test-nginx - test-secrets - test-service - runs-on: ubuntu-latest # TODO matrix to run on all expected versions? + runs-on: ubuntu-24.04 # TODO matrix to run on all expected versions? steps: - uses: actions/checkout@v5 with: @@ -120,7 +120,7 @@ jobs: )) needs: - test-images - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: contents: read packages: write