Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (35 sloc) 759 Bytes
{
"variables": {
"git_shortcode": "{{env `SHORT_COMMIT`}}",
"registry_url": "{{env `REGISTRY_URL`}}",
"image_name": "website/simonweald"
},
"builders": [
{
"type": "docker",
"image": "nginx:alpine",
"commit": true,
"pull": true,
"changes": [
"CMD [ \"nginx\", \"-g\", \"daemon off;\" ]"
],
"run_command": [ "-d", "-i", "-t", "{{.Image}}", "/bin/sh" ]
}
],
"provisioners": [
{
"type": "ansible",
"user": "root",
"playbook_file": "provision.yaml"
}
],
"post-processors": [
[
{
"type": "docker-tag",
"repository": "{{user `registry_url`}}/{{user `image_name`}}",
"tag": "{{user `git_shortcode`}}"
}
]
]
}
You can’t perform that action at this time.