Skip to content

Commit ddadf4c

Browse files
committed
Adjust how images are consumed
1 parent e892b6c commit ddadf4c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ env:
4444
KAYOBE_ENVIRONMENT: ci-builder
4545
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
4646
overcloud_dib_architecture: ${{ inputs.cpu-platform-architecture == 'x86_64' && 'amd64' || 'arm64' }}
47+
pulp_artifact_path: ${{ inputs.cpu-platform-architecture == 'x86_64' && 'kayobe-images' || 'kayobe-images/aarch64' }}
4748
jobs:
4849
runner-selection:
4950
uses: ./.github/workflows/runner-selector.yml
@@ -268,7 +269,7 @@ jobs:
268269
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-upload.yml \
269270
-e artifact_path=/opt/kayobe/images/overcloud-rocky-9 \
270271
-e artifact_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
271-
-e artifact_type=kayobe-images/${{ inputs.cpu-platform-architecture }} \
272+
-e artifact_type=${{ env.pulp_artifact_path }} \
272273
-e file_regex="*.qcow2" \
273274
-e os_distribution="rocky" \
274275
-e os_release="9"
@@ -338,7 +339,7 @@ jobs:
338339
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-upload.yml \
339340
-e artifact_path=/opt/kayobe/images/overcloud-ubuntu-jammy \
340341
-e artifact_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
341-
-e artifact_type=kayobe-images/${{ inputs.cpu-platform-architecture }} \
342+
-e artifact_type=${{ env.pulp_artifact_path }} \
342343
-e file_regex="*.qcow2" \
343344
-e os_distribution="ubuntu" \
344345
-e os_release="jammy"
@@ -408,7 +409,7 @@ jobs:
408409
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-upload.yml \
409410
-e artifact_path=/opt/kayobe/images/overcloud-ubuntu-noble \
410411
-e artifact_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
411-
-e artifact_type=kayobe-images/${{ inputs.cpu-platform-architecture }} \
412+
-e artifact_type=${{ env.pulp_artifact_path }} \
412413
-e file_regex="*.qcow2" \
413414
-e os_distribution="ubuntu" \
414415
-e os_release="noble"

etc/kayobe/stackhpc-overcloud-host-images.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ stackhpc_download_overcloud_host_images: false
88
# The overcloud host image source, defined by os_distribution, os_release,
99
# and the current stable version.
1010
stackhpc_overcloud_host_image_url: "{{ stackhpc_release_pulp_content_url_with_auth }}/kayobe-images/\
11+
{{ 'aarch64/' if stackhpc_cpu_arch == 'arm64' else '' }}\
1112
{{ openstack_release }}/{{ os_distribution }}/{{ os_release }}/\
1213
{{ stackhpc_overcloud_host_image_version }}/\
1314
overcloud-{{ os_distribution }}-{{ os_release }}.qcow2"

0 commit comments

Comments
 (0)