Skip to content
Snippets Groups Projects
Unverified Commit bc01127d authored by Christian Rebischke's avatar Christian Rebischke
Browse files

fix cloud.json + add buildname


Add a output_directory, a buildname, fix build process
and add support for auto signing (only local)

Signed-off-by: default avatarChristian Rebischke <chris@nullday.de>
parent 609fe4a9
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,9 @@
},
"builders": [
{
"name": "Arch-Linux-cloudimg-amd64-{{isotime \"2006-01-02\"}}.img",
"type": "qemu",
"output_directory": "release",
"boot_wait": "{{user `boot_wait`}}",
"http_directory": "http",
"disk_size": "{{user `disk_size`}}",
......@@ -37,7 +39,7 @@
],
"boot_command": [
"<enter><wait10><wait10><wait10><wait10><wait10><enter><enter>",
"curl -O 'http://{{.HTTPIP}}:{{.HTTPPort}}/install{,-chroot}.sh'<enter><wait>",
"curl -O 'http://{{.HTTPIP}}:{{.HTTPPort}}/install{,-cloud}.sh'<enter><wait>",
"bash install.sh < install-cloud.sh && systemctl reboot<enter>"
]
}
......@@ -63,17 +65,19 @@
],
"post-processors": [
[
{
{
"type": "checksum",
"checksum_types": [
"sha256"
],
"output": "Arch-Linux-cloudimg-amd64-{{isotime \"2006-01-02\"}}.img"
"output": "Arch-Linux-cloudimg-amd64-{{isotime \"2006-01-02\"}}.SHA256"
},
{
"type": "shell-local",
"inline": [
"gpg --sign --detach-sign Arch-Linux-cloudimg-amd64-{{isotime \"2006-01-02\"}}.img"
"mv release/packer-Arch-Linux-cloudimg-amd64-{{isotime \"2006-01-02\"}}.img release/Arch-Linux-cloudimg-amd64-{{isotime \"2006-01-02\"}}.img",
"sed -i 's/packer-//' Arch-Linux-cloudimg-amd64-{{isotime \"2006-01-02\"}}.SHA256",
"gpg --sign --detach-sign Arch-Linux-cloudimg-amd64-{{isotime \"2006-01-02\"}}.SHA256"
]
}
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment