Skip to content

Commit

Permalink
Fix artifact references in host-image-build
Browse files Browse the repository at this point in the history
  • Loading branch information
assumptionsandg committed Dec 4, 2024
1 parent 0f22356 commit 09e1d2f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/overcloud-host-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,11 @@ jobs:
source venvs/kayobe/bin/activate &&
source src/kayobe-config/kayobe-env --environment ci-builder &&
kayobe playbook run \
src/kayobe-config/etc/kayobe/ansible/pulp-image-upload.yml \
-e image_path=/opt/kayobe/images/overcloud-rocky-9 \
-e image_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
-e image_name="kayobe-images" \
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-upload.yml \
-e artifact_path=/opt/kayobe/images/overcloud-rocky-9 \
-e artifact_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
-e artifact_name="kayobe-images" \
-e file_regex="*.qcow2" \
-e os_distribution="rocky" \
-e os_release="9"
env:
Expand Down Expand Up @@ -292,10 +293,11 @@ jobs:
source venvs/kayobe/bin/activate &&
source src/kayobe-config/kayobe-env --environment ci-builder &&
kayobe playbook run \
src/kayobe-config/etc/kayobe/ansible/pulp-image-upload.yml \
-e image_path=/opt/kayobe/images/overcloud-ubuntu-jammy \
-e image_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
-e image_name="kayobe-images" \
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-upload.yml \
-e artifact_path=/opt/kayobe/images/overcloud-ubuntu-jammy \
-e artifact_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
-e artifact_name="kayobe-images" \
-e file_regex="*.qcow2" \
-e os_distribution="ubuntu" \
-e os_release="jammy"
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
remote_pulp_url: "{{ stackhpc_release_pulp_url }}"
remote_pulp_username: "{{ stackhpc_release_pulp_username }}"
remote_pulp_password: "{{ stackhpc_release_pulp_password }}"
repository_name: "{{ artifact_path }}-{{ openstack_release }}-{{ os_distribution }}-{{ os_release }}"
pulp_base_path: "{{ artifact_path }}/{{ openstack_release }}/{{ os_distribution }}/{{ os_release }}"
file_extension: 'qcow2'
repository_name: "{{ artifact_name }}-{{ openstack_release }}-{{ os_distribution }}-{{ os_release }}"
pulp_base_path: "{{ artifact_name }}/{{ openstack_release }}/{{ os_distribution }}/{{ os_release }}"
tasks:
- name: Print artifact tag
debug:
Expand All @@ -16,7 +15,7 @@
- name: Get filename
find:
paths: "{{ artifact_path }}"
patterns: "*.{{ file_extension }}"
patterns: "{{ file_regex }}"
register: found_files

- name: Upload an artifact
Expand Down

0 comments on commit 09e1d2f

Please sign in to comment.