File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ jobs:
3636 matrix : # build RL8, RL9
3737 build :
3838 - image_name : openhpc-doca-RL8
39- source_image_name : openhpc- RL8 # TODO: needs to be injected from environments/.stackhpc/terraform/cluster_image.auto.tfvars.json
39+ source_image_name_key : RL8 # key into environments/.stackhpc/terraform/cluster_image.auto.tfvars.json
4040 inventory_groups : doca
4141 - image_name : openhpc-doca-RL9
42- source_image_name : openhpc- RL9 # TODO: as above
42+ source_image_name_key : RL9
4343 inventory_groups : doca
4444 env :
4545 ANSIBLE_FORCE_COLOR : True
@@ -102,7 +102,7 @@ jobs:
102102 PACKER_LOG=1 packer build \
103103 -on-error=${{ vars.PACKER_ON_ERROR }} \
104104 -var-file=$PKR_VAR_environment_root/${{ env.CI_CLOUD }}.pkrvars.hcl \
105- -var "source_image_name=${{ matrix.build.source_image_name }}" \
105+ -var "source_image_name=fromJSON(env.FAT_IMAGES)['cluster_image'][ matrix.build.source_image_name_key] }} \
106106 -var "image_name=${{ matrix.build.image_name }}" \
107107 -var "inventory_groups=${{ matrix.build.inventory_groups }}" \
108108 openstack.pkr.hcl
You can’t perform that action at this time.
0 commit comments