I’m running a packer build through a Gitlab CICD pipline.
Gitlab provides the environment variables during the run so no problems there.
However during the template coding phase I want to be able to run a local task (VSCode task) to validate the json I am writing without having to commit. Unfortunately all the variables which would normally be populated by Gitlab are coming up blank.
Is there a syntax to allow a default value to be substituted if needed like is possible in bash?
Thanks in advance