From f386c2d85a042bb8f807cb0853374e25368c59fe Mon Sep 17 00:00:00 2001 From: Marco Nenciarini Date: Mon, 20 Jul 2026 18:17:21 +0200 Subject: [PATCH] ci: make runner labels configurable via CI_RUNNERS variable (#1023) Switch all workflow jobs from a hardcoded ubuntu-latest to ${{ vars.CI_RUNNERS || 'ubuntu-latest' }}, so runner sizing can be changed via the CI_RUNNERS organization/repository variable without editing workflow files. The cloudnative-pg organization CI_RUNNERS variable is already set to ubuntu-latest-16-cores. Signed-off-by: Marco Nenciarini --- .github/workflows/ci.yml | 4 +++- .github/workflows/publish-docs.yml | 4 ++-- .github/workflows/release-please.yml | 2 +- .github/workflows/release-publish.yml | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d8c09c..8c03c3c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,12 +8,13 @@ permissions: read-all jobs: ci: - runs-on: ubuntu-latest + runs-on: ${{ vars.CI_RUNNERS || 'ubuntu-latest' }} permissions: packages: write contents: write steps: - name: Cleanup Disk + if: vars.CI_RUNNERS == '' || vars.CI_RUNNERS == 'ubuntu-latest' uses: jlumbroso/free-disk-space@v1.3.1 with: android: true @@ -23,6 +24,7 @@ jobs: large-packages: false swap-storage: false - name: Cleanup docker cache + if: vars.CI_RUNNERS == '' || vars.CI_RUNNERS == 'ubuntu-latest' run: | echo "-------------Disk info before cleanup----------------" df -h diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 4c39a66..c01dee1 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -20,7 +20,7 @@ permissions: read-all jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ vars.CI_RUNNERS || 'ubuntu-latest' }} permissions: contents: read steps: @@ -60,7 +60,7 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} needs: build - runs-on: ubuntu-latest + runs-on: ${{ vars.CI_RUNNERS || 'ubuntu-latest' }} steps: - name: Deploy to GitHub Pages id: deployment diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index e980806..959ed72 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -9,7 +9,7 @@ permissions: read-all jobs: release-please: - runs-on: ubuntu-latest + runs-on: ${{ vars.CI_RUNNERS || 'ubuntu-latest' }} permissions: contents: write pull-requests: write diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index f1a26b3..2390dc9 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -7,7 +7,7 @@ permissions: read-all jobs: release-publish-artifacts: - runs-on: ubuntu-latest + runs-on: ${{ vars.CI_RUNNERS || 'ubuntu-latest' }} permissions: packages: write contents: write