18
18
options :
19
19
- SMS Lab
20
20
- Leafcloud
21
+ cpu-platform-architecture :
22
+ description : Select the image's build architecture
23
+ type : choice
24
+ default : x86
25
+ options :
26
+ - x86
27
+ - aarch64
21
28
secrets :
22
29
KAYOBE_VAULT_PASSWORD :
23
30
required : true
32
39
ANSIBLE_FORCE_COLOR : True
33
40
KAYOBE_ENVIRONMENT : ci-builder
34
41
KAYOBE_VAULT_PASSWORD : ${{ secrets.KAYOBE_VAULT_PASSWORD }}
42
+ overcloud_dib_architechture : ${{ inputs.cpu-platform-architecture == 'x86' && 'amd64' || 'arm64' }}
35
43
jobs :
36
44
runner-selection :
37
45
uses : ./.github/workflows/runner-selector.yml
@@ -256,7 +264,7 @@ jobs:
256
264
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-upload.yml \
257
265
-e artifact_path=/opt/kayobe/images/overcloud-rocky-9 \
258
266
-e artifact_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
259
- -e artifact_type="kayobe-images" \
267
+ -e artifact_type="kayobe-images/{{ inputs.cpu-platform-architecture }} " \
260
268
-e file_regex="*.qcow2" \
261
269
-e os_distribution="rocky" \
262
270
-e os_release="9"
@@ -272,6 +280,7 @@ jobs:
272
280
src/kayobe-config/etc/kayobe/ansible/openstack-host-image-upload.yml \
273
281
-e local_image_path="/opt/kayobe/images/overcloud-rocky-9/overcloud-rocky-9.qcow2" \
274
282
-e image_name=overcloud-rocky-9-${{ steps.host_image_tag.outputs.host_image_tag }}
283
+ -e cpu-platform=${{ env.overcloud_dib_architechture }}
275
284
env :
276
285
CLOUDS_YAML : ${{ secrets.CLOUDS_YAML }}
277
286
OS_APPLICATION_CREDENTIAL_ID : ${{ secrets.OS_APPLICATION_CREDENTIAL_ID }}
@@ -324,7 +333,7 @@ jobs:
324
333
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-upload.yml \
325
334
-e artifact_path=/opt/kayobe/images/overcloud-ubuntu-jammy \
326
335
-e artifact_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
327
- -e artifact_type="kayobe-images" \
336
+ -e artifact_type="kayobe-images/{{ inputs.cpu-platform-architecture }} " \
328
337
-e file_regex="*.qcow2" \
329
338
-e os_distribution="ubuntu" \
330
339
-e os_release="jammy"
@@ -340,6 +349,7 @@ jobs:
340
349
src/kayobe-config/etc/kayobe/ansible/openstack-host-image-upload.yml \
341
350
-e local_image_path="/opt/kayobe/images/overcloud-ubuntu-jammy/overcloud-ubuntu-jammy.qcow2" \
342
351
-e image_name=overcloud-ubuntu-jammy-${{ steps.host_image_tag.outputs.host_image_tag }}
352
+ -e cpu-platform=${{ env.overcloud_dib_architechture }}
343
353
env :
344
354
CLOUDS_YAML : ${{ secrets.CLOUDS_YAML }}
345
355
OS_APPLICATION_CREDENTIAL_ID : ${{ secrets.OS_APPLICATION_CREDENTIAL_ID }}
0 commit comments