Skip to content

Commit ad3f810

Browse files
committed
Make runs-on a env variable
1 parent db12c55 commit ad3f810

File tree

6 files changed

+47
-10
lines changed

6 files changed

+47
-10
lines changed

.github/workflows/ipa-image-build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ on:
1111
description: Build Ubuntu 22.04 Jammy
1212
type: boolean
1313
default: true
14+
runner_env:
15+
description: Which cloud to run on?
16+
type: choice
17+
default: SMS Lab
18+
options:
19+
- SMS Lab
20+
- Leafcloud
1421
secrets:
1522
KAYOBE_VAULT_PASSWORD:
1623
required: true
@@ -29,8 +36,8 @@ jobs:
2936
ipa-image-build:
3037
name: Build IPA images
3138
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
32-
environment: sms
33-
runs-on: arc-skc-host-image-builder-runner-sms
39+
environment: ${{ inputs.runner_env }}
40+
runs-on: ${{ vars.RUNS_ON_TARGET_IMAGE_BUILDER }}
3441
permissions: {}
3542
steps:
3643
- name: Install Package

.github/workflows/overcloud-host-image-build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ on:
1111
description: Build Ubuntu 22.04 Jammy
1212
type: boolean
1313
default: true
14+
runner_env:
15+
description: Which cloud to run on?
16+
type: choice
17+
default: SMS Lab
18+
options:
19+
- SMS Lab
20+
- Leafcloud
1421
secrets:
1522
KAYOBE_VAULT_PASSWORD:
1623
required: true
@@ -29,8 +36,8 @@ jobs:
2936
overcloud-host-image-build:
3037
name: Build overcloud host images
3138
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
32-
environment: sms
33-
runs-on: arc-skc-host-image-builder-runner-sms
39+
environment: ${{ inputs.runner_env }}
40+
runs-on: ${{ vars.RUNS_ON_TARGET_IMAGE_BUILDER }}
3441
permissions: {}
3542
steps:
3643
- name: Validate inputs

.github/workflows/overcloud-host-image-upload.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ on:
1515
description: Kayobe environment to use
1616
type: string
1717
default: "ci-builder"
18+
runner_env:
19+
description: Which cloud to run on?
20+
type: choice
21+
default: SMS Lab
22+
options:
23+
- SMS Lab
24+
- Leafcloud
1825
secrets:
1926
KAYOBE_VAULT_PASSWORD:
2027
required: true
@@ -31,8 +38,8 @@ jobs:
3138
overcloud-host-image-upload:
3239
name: Upload overcloud host images
3340
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
34-
environment: sms
35-
runs-on: arc-skc-host-image-builder-runner
41+
environment: ${{ inputs.runner_env }}
42+
runs-on: ${{ vars.RUNS_ON_TARGET_IMAGE_BUILDER }}
3643
permissions: {}
3744
steps:
3845
- name: Validate inputs

.github/workflows/package-build-ofed.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ on:
77
description: Build Rocky Linux 9
88
type: boolean
99
default: true
10+
runner_env:
11+
description: Which cloud to run on?
12+
type: choice
13+
default: SMS Lab
14+
options:
15+
- SMS Lab
16+
- Leafcloud
1017
secrets:
1118
KAYOBE_VAULT_PASSWORD:
1219
required: true
@@ -25,8 +32,8 @@ jobs:
2532
overcloud-ofed-packages:
2633
name: Build OFED packages
2734
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
28-
environment: sms
29-
runs-on: arc-skc-host-image-builder-runner-sms
35+
environment: ${{ inputs.runner_env }}
36+
runs-on: ${{ vars.RUNS_ON_TARGET_IMAGE_BUILDER }}
3037
permissions: {}
3138
steps:
3239
- name: Install Package

.github/workflows/stackhpc-check-tags.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424
check-tags:
2525
name: Check container image tags
2626
if: ${{ inputs.if && ! cancelled() }}
27-
runs-on: arc-skc-aio-runner
27+
environment: SMS Lab
28+
runs-on: ${{ vars.RUNS_ON_TARGET_AIO }}
2829
permissions: {}
2930
env:
3031
KAYOBE_ENVIRONMENT: ci-aio

.github/workflows/stackhpc-container-image-build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ on:
3838
type: boolean
3939
required: false
4040
default: false
41+
environment:
42+
description: Which cloud to run on?
43+
type: choice
44+
default: "SMS Lab"
45+
options:
46+
- "SMS Lab"
47+
- "Leafcloud"
4148

4249
env:
4350
ANSIBLE_FORCE_COLOR: True
@@ -104,7 +111,8 @@ jobs:
104111
container-image-build:
105112
name: Build Kolla container images
106113
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
107-
runs-on: arc-skc-container-image-builder-runner-sms
114+
#environment: ${{ inputs.runner_env }}
115+
runs-on: ${{ vars.RUNS_ON_TARGET_IMAGE_BUILDER }}
108116
timeout-minutes: 720
109117
permissions: {}
110118
strategy:

0 commit comments

Comments
 (0)