Skip to content

Commit 803af85

Browse files
committed
make it possible NOT to clean up packer builds
1 parent 5c0b9ea commit 803af85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/fatimage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
- name: Record settings for CI cloud
5555
run: |
5656
echo CI_CLOUD: ${{ env.CI_CLOUD }}
57+
echo cleanup_on_failure: ${{ github.event.inputs.cleanup_on_failure == }}
5758
5859
- name: Setup ssh
5960
run: |
@@ -91,7 +92,7 @@ jobs:
9192
packer init .
9293
9394
PACKER_LOG=1 packer build \
94-
-on-error=${{ github.event.inputs.cleanup_on_failure && 'cleanup' || 'abort' }} \
95+
-on-error=${{ github.event.inputs.cleanup_on_failure == 'true' && 'cleanup' || 'abort' }} \
9596
-var-file="$PKR_VAR_environment_root/${{ env.CI_CLOUD }}.pkrvars.hcl" \
9697
-var "source_image_name=${{ matrix.build.source_image_name }}" \
9798
-var "image_name=${{ matrix.build.image_name }}" \

0 commit comments

Comments
 (0)