+++ /dev/null
----
-fixes:
- - |
- Remove the -only CLI option for packer build
-
- The #CR 90dd675df482a8 submitted with common-packer v0.7.0
- fails to build packer jobs because of a bug in the packer build CLI.
-
- The `-only` option packer build CLI does not set the cloud provider
- name/type as per the documentation. The alternative is to use an environment
- variable that is passed through the packer job and can be reference in the
- packer templates.
-
- Ref:
- Github Issue: https://github.com/hashicorp/packer/issues/10495
set +x
packer.io build -color=false \
+ -only "${PACKER_BUILDER}" \
-var-file="$CLOUDENV" \
-var-file="$platform_file" \
"templates/$PACKER_TEMPLATE.json"