update packer config

This commit is contained in:
jalr 2018-02-13 00:07:08 +01:00
parent b69699e56f
commit 55716ce1db

View file

@ -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",