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:
22
22
fail-fast : false # allow other matrix jobs to continue even if one fails
23
23
matrix : # build RL8, RL9
24
24
build :
25
- - label : RL8
25
+ - image_name : openhpc- RL8
26
26
source_image_name : rocky-latest-RL8
27
- - label : RL9
27
+ inventory_groups : control,compute,login
28
+ - image_name : openhpc-RL9
28
29
source_image_name : rocky-latest-RL9
30
+ inventory_groups : control,compute,login
29
31
env :
30
32
ANSIBLE_FORCE_COLOR : True
31
33
OS_CLOUD : openstack
78
80
-on-error=${{ vars.PACKER_ON_ERROR }} \
79
81
-var-file=$PKR_VAR_environment_root/${{ env.CI_CLOUD }}.pkrvars.hcl \
80
82
-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 }} " \
83
85
openstack.pkr.hcl
84
86
85
87
- name : Get created image names from manifest
97
99
- name : Upload manifest artifact
98
100
uses : actions/upload-artifact@v4
99
101
with :
100
- name : image-details-${{ matrix.build.label }}
102
+ name : image-details-${{ matrix.build.image_name }}
101
103
path : |
102
104
./image-id.txt
103
105
./image-name.txt
Original file line number Diff line number Diff line change @@ -24,10 +24,12 @@ jobs:
24
24
fail-fast : false # allow other matrix jobs to continue even if one fails
25
25
matrix : # build RL8, RL9
26
26
build :
27
- - label : RL8
27
+ - image_name : rocky-latest- RL8
28
28
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
30
31
source_image_name : Rocky-9-GenericCloud-Base-9.4-20240523.0.x86_64.qcow2
32
+ inventory_groups : update
31
33
env :
32
34
ANSIBLE_FORCE_COLOR : True
33
35
OS_CLOUD : openstack
80
82
-on-error=${{ vars.PACKER_ON_ERROR }} \
81
83
-var-file=$PKR_VAR_environment_root/${{ env.CI_CLOUD }}.pkrvars.hcl \
82
84
-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 }} " \
85
87
openstack.pkr.hcl
86
88
87
89
- name : Get created image names from manifest
You can’t perform that action at this time.
0 commit comments