Skip to content

Commit 09e1d2f

Browse files
Fix artifact references in host-image-build
1 parent 0f22356 commit 09e1d2f

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

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

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,11 @@ jobs:
239239
source venvs/kayobe/bin/activate &&
240240
source src/kayobe-config/kayobe-env --environment ci-builder &&
241241
kayobe playbook run \
242-
src/kayobe-config/etc/kayobe/ansible/pulp-image-upload.yml \
243-
-e image_path=/opt/kayobe/images/overcloud-rocky-9 \
244-
-e image_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
245-
-e image_name="kayobe-images" \
242+
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-upload.yml \
243+
-e artifact_path=/opt/kayobe/images/overcloud-rocky-9 \
244+
-e artifact_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
245+
-e artifact_name="kayobe-images" \
246+
-e file_regex="*.qcow2" \
246247
-e os_distribution="rocky" \
247248
-e os_release="9"
248249
env:
@@ -292,10 +293,11 @@ jobs:
292293
source venvs/kayobe/bin/activate &&
293294
source src/kayobe-config/kayobe-env --environment ci-builder &&
294295
kayobe playbook run \
295-
src/kayobe-config/etc/kayobe/ansible/pulp-image-upload.yml \
296-
-e image_path=/opt/kayobe/images/overcloud-ubuntu-jammy \
297-
-e image_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
298-
-e image_name="kayobe-images" \
296+
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-upload.yml \
297+
-e artifact_path=/opt/kayobe/images/overcloud-ubuntu-jammy \
298+
-e artifact_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
299+
-e artifact_name="kayobe-images" \
300+
-e file_regex="*.qcow2" \
299301
-e os_distribution="ubuntu" \
300302
-e os_release="jammy"
301303
env:

etc/kayobe/ansible/pulp-image-upload.yml renamed to etc/kayobe/ansible/pulp-artifact-upload.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
remote_pulp_url: "{{ stackhpc_release_pulp_url }}"
66
remote_pulp_username: "{{ stackhpc_release_pulp_username }}"
77
remote_pulp_password: "{{ stackhpc_release_pulp_password }}"
8-
repository_name: "{{ artifact_path }}-{{ openstack_release }}-{{ os_distribution }}-{{ os_release }}"
9-
pulp_base_path: "{{ artifact_path }}/{{ openstack_release }}/{{ os_distribution }}/{{ os_release }}"
10-
file_extension: 'qcow2'
8+
repository_name: "{{ artifact_name }}-{{ openstack_release }}-{{ os_distribution }}-{{ os_release }}"
9+
pulp_base_path: "{{ artifact_name }}/{{ openstack_release }}/{{ os_distribution }}/{{ os_release }}"
1110
tasks:
1211
- name: Print artifact tag
1312
debug:
@@ -16,7 +15,7 @@
1615
- name: Get filename
1716
find:
1817
paths: "{{ artifact_path }}"
19-
patterns: "*.{{ file_extension }}"
18+
patterns: "{{ file_regex }}"
2019
register: found_files
2120

2221
- name: Upload an artifact

0 commit comments

Comments
 (0)