1010 - LEAFCLOUD
1111 - SMS
1212 - ARCUS
13+ cleanup_on_failure :
14+ description : Cleanup Packer resources on failure
15+ type : boolean
16+ required : true
17+ default : true
1318
1419jobs :
1520 openstack :
@@ -23,10 +28,10 @@ jobs:
2328 matrix : # build RL8, RL9
2429 build :
2530 - image_name : openhpc-RL8
26- source_image_name : Rocky-8-GenericCloud-Base-8.10-20240528.0.x86_64.qcow2
31+ source_image_name : Rocky-8-GenericCloud-Base-8.10-20240528.0.x86_64.raw
2732 inventory_groups : control,compute,login,update
2833 - image_name : openhpc-RL9
29- source_image_name : Rocky-9-GenericCloud-Base-9.5-20241118.0.x86_64.qcow2
34+ source_image_name : Rocky-9-GenericCloud-Base-9.5-20241118.0.x86_64.raw
3035 inventory_groups : control,compute,login,update
3136 env :
3237 ANSIBLE_FORCE_COLOR : True
7883 packer init .
7984
8085 PACKER_LOG=1 packer build \
81- -on-error=${{ vars.PACKER_ON_ERROR }} \
86+ -on-error=${{ github.event.inputs.cleanup_on_failure && 'cleanup' || 'abort' }} \
8287 -var-file=$PKR_VAR_environment_root/${{ env.CI_CLOUD }}.pkrvars.hcl \
8388 -var "source_image_name=${{ matrix.build.source_image_name }}" \
8489 -var "image_name=${{ matrix.build.image_name }}" \
@@ -102,7 +107,7 @@ jobs:
102107 - name : Make image usable for further builds
103108 run : |
104109 . venv/bin/activate
105- openstack image unset --property signature_verified "${{ steps.manifest.outputs.image-id }}"
110+ openstack image unset --property signature_verified "${{ steps.manifest.outputs.image-id }}" || true
106111
107112 - name : Upload manifest artifact
108113 uses : actions/upload-artifact@v4
0 commit comments