File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,12 @@ jobs:
2222 fail-fast : false # allow other matrix jobs to continue even if one fails
2323 matrix : # build RL8, RL9
2424 build :
25- - label : RL8
25+ - image_name : openhpc- RL8
2626 source_image_name : rocky-latest-RL8
27- - label : RL9
27+ inventory_groups : control,compute,login
28+ - image_name : openhpc-RL9
2829 source_image_name : rocky-latest-RL9
30+ inventory_groups : control,compute,login
2931 env :
3032 ANSIBLE_FORCE_COLOR : True
3133 OS_CLOUD : openstack
7880 -on-error=${{ vars.PACKER_ON_ERROR }} \
7981 -var-file=$PKR_VAR_environment_root/${{ env.CI_CLOUD }}.pkrvars.hcl \
8082 -var "source_image_name=${{ matrix.build.source_image_name }}" \
81- -var "image_name=openhpc- ${{ matrix.build.label }}" \
82- -var "inventory_groups=control,compute,login " \
83+ -var "image_name=${{ matrix.build.image_name }}" \
84+ -var "inventory_groups=${{ matrix.build.inventory_groups }} " \
8385 openstack.pkr.hcl
8486
8587 - name : Get created image names from manifest
9799 - name : Upload manifest artifact
98100 uses : actions/upload-artifact@v4
99101 with :
100- name : image-details-${{ matrix.build.label }}
102+ name : image-details-${{ matrix.build.image_name }}
101103 path : |
102104 ./image-id.txt
103105 ./image-name.txt
Original file line number Diff line number Diff line change @@ -24,10 +24,12 @@ jobs:
2424 fail-fast : false # allow other matrix jobs to continue even if one fails
2525 matrix : # build RL8, RL9
2626 build :
27- - label : RL8
27+ - image_name : rocky-latest- RL8
2828 source_image_name : Rocky-8-GenericCloud-Base-8.9-20231119.0.x86_64.qcow2
29- - label : RL9
29+ inventory_groups : update
30+ - image_name : rocky-latest-RL9
3031 source_image_name : Rocky-9-GenericCloud-Base-9.4-20240523.0.x86_64.qcow2
32+ inventory_groups : update
3133 env :
3234 ANSIBLE_FORCE_COLOR : True
3335 OS_CLOUD : openstack
8082 -on-error=${{ vars.PACKER_ON_ERROR }} \
8183 -var-file=$PKR_VAR_environment_root/${{ env.CI_CLOUD }}.pkrvars.hcl \
8284 -var "source_image_name=${{ matrix.build.source_image_name }}" \
83- -var "image_name=rocky-latest- ${{ matrix.build.label }}" \
84- -var "inventory_groups=update " \
85+ -var "image_name=${{ matrix.build.image_name }}" \
86+ -var "inventory_groups=${{ matrix.build.inventory_groups }} " \
8587 openstack.pkr.hcl
8688
8789 - name : Get created image names from manifest
You can’t perform that action at this time.
0 commit comments