Skip to content

Commit c9a7799

Browse files
authored
chore: make runs-on configurable through variables (#5392)
1 parent f865d4c commit c9a7799

File tree

13 files changed

+20
-20
lines changed

13 files changed

+20
-20
lines changed

.github/workflows/announce.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- published
1010
jobs:
1111
slack:
12-
runs-on: ubuntu-latest
12+
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
1313
steps:
1414
- name: Get tag
1515
id: get_tag

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
native-binary:
12-
runs-on: ubuntu-latest
12+
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
1313
steps:
1414
# Checkout should always be before setup-go to ensure caching is working
1515
- name: Checkout
@@ -32,7 +32,7 @@ jobs:
3232
run: ./scripts/check-size.sh ./bin/*linux-x86_64
3333

3434
docker:
35-
runs-on: ubuntu-latest
35+
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
3636
steps:
3737
- name: Checkout
3838
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222
jobs:
2323
analyze:
2424
name: Analyze
25-
runs-on: ubuntu-latest
25+
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
2626

2727
strategy:
2828
fail-fast: false

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
build:
13-
runs-on: ubuntu-latest
13+
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
1414
steps:
1515
# Checkout should always be before setup-go to ensure caching is working
1616
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permissions:
88
contents: write
99
jobs:
1010
deploy:
11-
runs-on: ubuntu-latest
11+
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
1212
environment: actions
1313
steps:
1414
- name: Check out the release tag

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
ensure-docs-generated:
1111
name: Ensure docs are generated
12-
runs-on: ubuntu-latest
12+
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
1313
steps:
1414
# Checkout should always be before setup-go to ensure caching is working
1515
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -24,7 +24,7 @@ jobs:
2424
- name: Exit 1 if not empty
2525
run: git diff --exit-code
2626
markdown-link-check:
27-
runs-on: ubuntu-latest
27+
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
2828
steps:
2929
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3030
- uses: gaurav-nelson/github-action-markdown-link-check@3c3b66f1f7d0900e37b71eca45b63ea9eedfce31 # 1.0.17

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
permissions:
88
contents: read
99
pull-requests: write
10-
runs-on: ubuntu-latest
10+
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
actionlint:
1212
name: Github Actions lint
13-
runs-on: ubuntu-latest
13+
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
1414
steps:
1515
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1616
- name: Check workflow files
@@ -20,15 +20,15 @@ jobs:
2020

2121
dockerlint:
2222
name: dockerfile-lint
23-
runs-on: ubuntu-latest
23+
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
2424
steps:
2525
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2626
- name: dockerfile-lint
2727
run: docker build --check .
2828

2929
golangci:
3030
name: golangci-lint
31-
runs-on: ubuntu-latest
31+
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
3232
steps:
3333
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3434
- name: golangci-lint
@@ -40,7 +40,7 @@ jobs:
4040

4141
spelling:
4242
name: Spell Check with Typos
43-
runs-on: ubuntu-latest
43+
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
4444
steps:
4545
- name: Checkout Actions Repository
4646
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- vpc
5151
- vpcgw
5252
- webhosting
53-
runs-on: ubuntu-latest
53+
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
5454
steps:
5555
# Checkout should always be before setup-go to ensure caching is working
5656
- name: Checkout
@@ -90,7 +90,7 @@ jobs:
9090
FAILED_PRODUCT: ${{ matrix.products }}
9191

9292
sweepers:
93-
runs-on: ubuntu-latest
93+
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
9494
needs: nightly
9595
if: always()
9696
steps:

.github/workflows/purge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
sweepers:
11-
runs-on: ubuntu-latest
11+
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
1212
steps:
1313
# Checkout should always be before setup-go to ensure caching is working
1414
- name: Checkout

0 commit comments

Comments
 (0)