diff --git a/packer.json b/packer.json index 9056068..c629588 100644 --- a/packer.json +++ b/packer.json @@ -20,13 +20,16 @@ } ], "provisioners": [ - { + { "type": "shell", - "command": "echo \"{{user `ci_job_id`}}\" > /.build-info" - }, - { - "type": "shell", - "command": "apt-get update && apt-get -y install python" + "inline": [ + "echo \"job: {{user `ci_job_id`}}\" > /.build-info", + "echo \"commit: {{user `ci_commit_sha`}}\" >> /.build-info", + "echo \"commit tag: {{user `ci_commit_tag`}}\" >> /.build-info", + "echo \"commit ref name: {{user `ci_commit_ref_name`}}\" >> /.build-info", + "echo \"commit ref slug: {{user `ci_commit_ref_slug`}}\" >> /.build-info", + "apt-get update && apt-get -y install python" + ] }, { "type": "ansible",