Skip to content

Commit

Permalink
fix: remove spurious '- ' prefix from additional_post_build_commands
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Your Name committed Apr 7, 2026
1 parent 8310ee1 commit eb18463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csvd_config_packer.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit eb18463

Please sign in to comment.