From 55716ce1dbf820a17bee3be8a63666fd24eb1167 Mon Sep 17 00:00:00 2001 From: jalr Date: Tue, 13 Feb 2018 00:07:08 +0100 Subject: [PATCH] update packer config --- packer.json | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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",