update packer config
This commit is contained in:
parent
b69699e56f
commit
55716ce1db
1 changed files with 9 additions and 6 deletions
15
packer.json
15
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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue