File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 15
15
description : Tag to promote
16
16
type : string
17
17
required : true
18
+ cpu-platform-architecture :
19
+ description : What is the tagged image's architecture
20
+ type : choice
21
+ required : true
22
+ default : x86_64
23
+ options :
24
+ - x86_64
25
+ - aarch64
18
26
env :
19
27
ANSIBLE_FORCE_COLOR : True
28
+ pulp_artifact_type : ${{ inputs.cpu-platform-architecture == 'x86_64' && 'kayobe-images' || 'kayobe-images/aarch64' }}
20
29
jobs :
21
30
overcloud-host-image-promote :
22
31
name : Promote overcloud host image
77
86
source src/kayobe-config/kayobe-env --environment ci-builder &&
78
87
kayobe playbook run \
79
88
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-promote.yml \
80
- -e artifact_type="kayobe-images" \
89
+ -e artifact_type=${{ env.pulp_artifact_type }} \
81
90
-e os_distribution='rocky' \
82
91
-e os_release='9'
83
92
env :
91
100
source src/kayobe-config/kayobe-env --environment ci-builder &&
92
101
kayobe playbook run \
93
102
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-promote.yml \
94
- -e artifact_type="kayobe-images" \
103
+ -e artifact_type=${{ env.pulp_artifact_type }} \
95
104
-e os_distribution='ubuntu' \
96
105
-e os_release='noble'
97
106
env :
Original file line number Diff line number Diff line change 6
6
hosts : seed
7
7
vars :
8
8
local_image_path : /opt/kayobe/images/overcloud-{{ os_distribution }}-{{ os_release }}/overcloud-{{ os_distribution }}-{{ os_release }}.qcow2
9
- image_name : overcloud-{{ os_distribution }}-{{ os_release }}- {{ cpu_platform }}
9
+ image_name : overcloud-{{ os_distribution }}-{{ os_release }}{{ '-arm64' if cpu_platform == 'arm64' else '' }}
10
10
tasks :
11
11
- name : Upload image to Glance
12
12
block :
You can’t perform that action at this time.
0 commit comments