File tree Expand file tree Collapse file tree 6 files changed +52
-10
lines changed Expand file tree Collapse file tree 6 files changed +52
-10
lines changed Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 3838 type : boolean
3939 required : false
4040 default : false
41+ runner_env :
42+ description : Which cloud to run on?
43+ type : choice
44+ default : SMS Lab
45+ options :
46+ - SMS Lab
47+ - Leafcloud
4148
4249env :
4350 ANSIBLE_FORCE_COLOR : True
4451jobs :
4552 generate-tag :
4653 name : Generate container image tag
4754 if : github.repository == 'stackhpc/stackhpc-kayobe-config'
55+ environment : ${{ inputs.runner_env }}
4856 runs-on : ubuntu-latest
4957 permissions : {}
5058 outputs :
@@ -101,10 +109,15 @@ jobs:
101109 run : |
102110 echo "${{ steps.datetime_tag.outputs.datetime_tag }}"
103111
112+ - name : Verify environment
113+ run : |
114+ echo "Environment variable RUNS_ON_TARGET_IMAGE_BUILDER: ${{ vars.RUNS_ON_TARGET_IMAGE_BUILDER }}"
115+
104116 container-image-build :
105117 name : Build Kolla container images
106118 if : github.repository == 'stackhpc/stackhpc-kayobe-config'
107- runs-on : arc-skc-container-image-builder-runner-sms
119+ environment : ${{ inputs.runner_env }}
120+ runs-on : ${{ vars.RUNS_ON_TARGET_IMAGE_BUILDER }}
108121 timeout-minutes : 720
109122 permissions : {}
110123 strategy :
You can’t perform that action at this time.
0 commit comments