Skip to content

Commit cad5dd2

Browse files
committed
Use variables for runs-on settings
See gh-42333
1 parent 3d53d73 commit cad5dd2

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

.github/workflows/build-and-deploy-snapshot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ concurrency:
88
jobs:
99
build-and-deploy-snapshot:
1010
name: Build and Deploy Snapshot
11-
runs-on: ubuntu-latest
11+
runs-on: ${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }}
1212
if: ${{ github.repository == 'spring-projects/spring-boot' }}
1313
steps:
1414
- name: Check Out Code

.github/workflows/build-pull-request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ permissions:
77
jobs:
88
build:
99
name: Build Pull Request
10-
runs-on: ubuntu-latest
10+
runs-on: ${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }}
1111
if: ${{ github.repository == 'spring-projects/spring-boot' }}
1212
steps:
1313
- name: Free Disk Space

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os:
17-
- id: ubuntu-latest
17+
- id: ${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }}
1818
name: Linux
1919
- id: windows-latest
2020
name: Windows

.github/workflows/release.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ concurrency:
88
jobs:
99
build-and-stage-release:
1010
name: Build and Stage Release
11-
runs-on: ubuntu-latest
11+
runs-on: ${{ vars.UBUNTU_MEDIUIM || 'ubuntu-latest' }}
1212
if: ${{ github.repository == 'spring-projects/spring-boot' }}
1313
steps:
1414
- name: Check Out Code
@@ -51,7 +51,7 @@ jobs:
5151
needs:
5252
- build-and-stage-release
5353
- verify
54-
runs-on: ubuntu-latest
54+
runs-on: ${{ vars.UBUNTU_SMALL || 'ubuntu-latest' }}
5555
steps:
5656
- name: Check Out Code
5757
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -68,7 +68,7 @@ jobs:
6868
needs:
6969
- build-and-stage-release
7070
- sync-to-maven-central
71-
runs-on: ubuntu-latest
71+
runs-on: ${{ vars.UBUNTU_SMALL || 'ubuntu-latest' }}
7272
steps:
7373
- name: Set up JFrog CLI
7474
uses: jfrog/setup-jfrog-cli@9fe0f98bd45b19e6e931d457f4e98f8f84461fb5 # v4.4.1
@@ -81,7 +81,7 @@ jobs:
8181
needs:
8282
- build-and-stage-release
8383
- sync-to-maven-central
84-
runs-on: ubuntu-latest
84+
runs-on: ${{ vars.UBUNTU_SMALL || 'ubuntu-latest' }}
8585
steps:
8686
- name: Check Out Code
8787
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -97,7 +97,7 @@ jobs:
9797
needs:
9898
- build-and-stage-release
9999
- sync-to-maven-central
100-
runs-on: ubuntu-latest
100+
runs-on: ${{ vars.UBUNTU_SMALL || 'ubuntu-latest' }}
101101
steps:
102102
- name: Check Out Code
103103
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -115,7 +115,7 @@ jobs:
115115
- promote-release
116116
- publish-gradle-plugin
117117
- publish-to-sdkman
118-
runs-on: ubuntu-latest
118+
runs-on: ${{ vars.UBUNTU_SMALL || 'ubuntu-latest' }}
119119
steps:
120120
- name: Check Out Code
121121
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

.github/workflows/run-system-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ concurrency:
88
jobs:
99
run-system-tests:
1010
name: 'Java ${{ matrix.java.version}}'
11-
runs-on: ubuntu-latest
11+
runs-on: ${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }}
1212
if: ${{ github.repository == 'spring-projects/spring-boot' }}
1313
strategy:
1414
matrix:

.github/workflows/verify.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
jobs:
2222
verify:
2323
name: Verify
24-
runs-on: ubuntu-latest
24+
runs-on: ${{ vars.UBUNTU_SMALL || 'ubuntu-latest' }}
2525
steps:
2626
- name: Check Out Release Verification Tests
2727
uses: actions/checkout@v4

0 commit comments

Comments
 (0)