From eb184634fcc11c9d9146d06e401b7fcd04cde322 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 7 Apr 2026 12:24:08 -0400 Subject: [PATCH] fix: remove spurious '- ' prefix from additional_post_build_commands The packer-pipeline internal buildspec template already wraps the value in '- {{ additional_post_build_commands }}', so prefixing the value with '- ' caused YAML_FILE_ERROR (nested list) in CodeBuild build #8. --- csvd_config_packer.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csvd_config_packer.hcl b/csvd_config_packer.hcl index fcdf940..b937a96 100644 --- a/csvd_config_packer.hcl +++ b/csvd_config_packer.hcl @@ -43,7 +43,7 @@ packer_pipeline { buildspec_template = "buildspec.yml.j2" // Buildspec template file // Post-build commands to push Docker image to ECR - additional_post_build_commands = "- docker push ${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com/${ECR_REPOSITORY}:${IMAGE_TAG}" + additional_post_build_commands = "docker push ${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com/${ECR_REPOSITORY}:${IMAGE_TAG}" // Exclude patterns for zip creation exclude_dirs = [