Save docker image after build
diff --git a/ubuntu-14.04/template.json b/ubuntu-14.04/template.json
index d33a262..81c0580 100644
--- a/ubuntu-14.04/template.json
+++ b/ubuntu-14.04/template.json
@@ -85,9 +85,6 @@
},
"qemu": {
"output": "images/{{ user `distro` }}-qemu-{{ timestamp }}.box"
- },
- "qemu": {
- "output": "images/{{ user `distro` }}-qemu-{{ timestamp }}.box"
}
},
"except": [ "digitalocean", "docker" ]
@@ -97,6 +94,11 @@
"repository": "cloudlab/ubuntu",
"tag": "14.04",
"only": ["docker"]
+ },
+ {
+ "type": "docker-save",
+ "path": "images/{{ user `distro` }}-docker-{{ timestamp }}.tar",
+ "only": ["docker"]
}
],
"builders": [