10
10
- LEAFCLOUD
11
11
- SMS
12
12
- ARCUS
13
+ cleanup_on_failure :
14
+ description : Cleanup Packer resources on failure
15
+ type : boolean
16
+ required : true
17
+ default : true
13
18
14
19
jobs :
15
20
openstack :
@@ -23,10 +28,10 @@ jobs:
23
28
matrix : # build RL8, RL9
24
29
build :
25
30
- 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
27
32
inventory_groups : control,compute,login,update
28
33
- 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
30
35
inventory_groups : control,compute,login,update
31
36
env :
32
37
ANSIBLE_FORCE_COLOR : True
78
83
packer init .
79
84
80
85
PACKER_LOG=1 packer build \
81
- -on-error=${{ vars.PACKER_ON_ERROR }} \
86
+ -on-error=${{ github.event.inputs.cleanup_on_failure && 'cleanup' || 'abort' }} \
82
87
-var-file=$PKR_VAR_environment_root/${{ env.CI_CLOUD }}.pkrvars.hcl \
83
88
-var "source_image_name=${{ matrix.build.source_image_name }}" \
84
89
-var "image_name=${{ matrix.build.image_name }}" \
@@ -102,7 +107,7 @@ jobs:
102
107
- name : Make image usable for further builds
103
108
run : |
104
109
. 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
106
111
107
112
- name : Upload manifest artifact
108
113
uses : actions/upload-artifact@v4
0 commit comments