Verified Commit 83a7bd38 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Always write zeros

parent cc03d02f
......@@ -34,7 +34,7 @@ build:cloud-qemu:
before_script:
- pacman -Syu --needed --noconfirm packer qemu-headless
script:
- packer build -var 'write_zeroes=yes' -except=sign cloud.json
- packer build -except=sign cloud.json
artifacts:
name: "cloud-qemu"
paths:
......@@ -46,7 +46,7 @@ build:vagrant-qemu:
before_script:
- pacman -Syu --needed --noconfirm packer qemu-headless
script:
- packer build -var 'write_zeroes=yes' -only=qemu local.json
- packer build -only=qemu local.json
publish:
stage: publish
......@@ -56,7 +56,7 @@ publish:
before_script:
- pacman -Syu --needed --noconfirm qemu-headless virtualbox packer
script:
- packer build -parallel-builds=1 -var "vagrant_cloud_token=$VAGRANT_API_TOKEN" -var 'write_zeroes=yes' -except=vmware-iso vagrant.json
- packer build -parallel-builds=1 -var "vagrant_cloud_token=$VAGRANT_API_TOKEN" -except=vmware-iso vagrant.json
only:
variables:
- $SCHEDULED_PUBLISH == "TRUE"
......
......@@ -4,7 +4,6 @@
"iso_checksum_url": "https://mirror.pkgbuild.com/iso/latest/sha1sums.txt",
"disk_size": "20480",
"headless": "true",
"write_zeroes": "",
"boot_wait": "60s",
"accelerator": "",
"mirror": "https://mirror.pkgbuild.com/$repo/os/$arch"
......@@ -52,7 +51,7 @@
"scripts": [
"provision/write_zeroes.sh"
],
"execute_command": "if [ ! -z \"{{user `write_zeroes`}}\" ]; then echo 'arch'|sudo -S sh '{{.Path}}'; fi"
"execute_command": "'arch'|sudo -S sh '{{.Path}}'"
}
],
"post-processors": [
......
......@@ -5,7 +5,6 @@
"iso_checksum_url": "https://mirror.pkgbuild.com/iso/latest/sha1sums.txt",
"disk_size": "20480",
"headless": "true",
"write_zeroes": "",
"boot_wait": "60s",
"accelerator": "",
"mirror": "https://mirror.pkgbuild.com/$repo/os/$arch"
......@@ -135,7 +134,7 @@
"scripts": [
"provision/write_zeroes.sh"
],
"execute_command": "if [ ! -z \"{{user `write_zeroes`}}\" ]; then echo 'vagrant'|sudo -S sh '{{.Path}}'; fi"
"execute_command": "'vagrant'|sudo -S sh '{{.Path}}'"
}
],
"post-processors": [
......
......@@ -5,7 +5,6 @@
"disk_size": "20480",
"headless": "true",
"vagrant_cloud_token": "PLACEHOLDER",
"write_zeroes": "",
"boot_wait": "60s",
"mirror": ""
},
......@@ -120,7 +119,7 @@
"scripts": [
"provision/write_zeroes.sh"
],
"execute_command": "if [ ! -z \"{{user `write_zeroes`}}\" ]; then echo 'vagrant'|sudo -S sh '{{.Path}}'; fi"
"execute_command": "'vagrant'|sudo -S sh '{{.Path}}'"
}
],
"post-processors": [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment