We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5ff56a commit f6cfcaeCopy full SHA for f6cfcae
.github/workflows/fatimage.yml
@@ -10,6 +10,11 @@ on:
10
- LEAFCLOUD
11
- SMS
12
- ARCUS
13
+ cleanup_on_failure:
14
+ description: Cleanup Packer resources on failure
15
+ type: boolean
16
+ required: true
17
+ default: true
18
19
jobs:
20
openstack:
@@ -78,7 +83,7 @@ jobs:
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 \
88
-var "source_image_name=${{ matrix.build.source_image_name }}" \
89
-var "image_name=${{ matrix.build.image_name }}" \
0 commit comments