Verified Commit 32b56003 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Move around cloudimg output locations

parent 08b391b9
......@@ -3,4 +3,5 @@ packer_cache/
*.swp
output-*
.vscode
release/
*.SHA256
*.qcow2
......@@ -28,7 +28,7 @@ validate-packer:
before_script:
- pacman -Syu --needed --noconfirm packer
script:
- packer validate -var "iso_checksum_url=https://mirror.pkgbuild.com/iso/latest/sha1sums.txt" -except=vagrant-cloud vagrant.json
- packer validate -var "iso_checksum_url=https://mirror.pkgbuild.com/iso/latest/sha1sums.txt" -except=publish vagrant.json
- packer validate cloud.json
# Note: We explicitly need the `ipv6` tag here because otherwise we'd get random
......@@ -44,7 +44,7 @@ build:cloud-qemu:
artifacts:
name: "qcow2"
paths:
- "release/Arch-Linux-x86_64-cloudimg-*.qcow2"
- "Arch-Linux-x86_64-cloudimg-*.*"
expire_in: 2d
build:vagrant-qemu:
......
......@@ -10,11 +10,9 @@
},
"builders": [
{
"name": "Arch-Linux-x86_64-cloudimg-{{isotime \"2006-01-02\"}}.qcow2",
"type": "qemu",
"cpus": 2,
"memory": 1024,
"output_directory": "release",
"boot_wait": "{{user `boot_wait`}}",
"http_directory": "http",
"disk_size": "{{user `disk_size`}}",
......@@ -26,7 +24,7 @@
"ssh_port": 22,
"ssh_timeout": "2000s",
"shutdown_command": "sudo systemctl poweroff",
"vnc_bind_address": "0.0.0.0",
"vm_name": "Arch-Linux-x86_64-cloudimg-{{isotime \"2006-01-02\"}}.qcow2",
"headless": "{{user `headless`}}",
"accelerator": "{{user `accelerator`}}",
"disk_compression": true,
......@@ -51,21 +49,20 @@
],
"post-processors": [
[
{
"type": "checksum",
"checksum_types": [
"sha256"
],
"output": "release/Arch-Linux-x86_64-cloudimg-{{isotime \"2006-01-02\"}}.SHA256"
},
{
"name": "rename",
"type": "shell-local",
"inline": [
"mv release/packer-Arch-Linux-x86_64-cloudimg-{{isotime \"2006-01-02\"}}.qcow2 release/Arch-Linux-x86_64-cloudimg-{{isotime \"2006-01-02\"}}.qcow2",
"sed -i 's/packer-//' release/Arch-Linux-x86_64-cloudimg-{{isotime \"2006-01-02\"}}.SHA256"
"mv output-qemu/Arch-Linux-x86_64-cloudimg-{{isotime \"2006-01-02\"}}.qcow2 Arch-Linux-x86_64-cloudimg-{{isotime \"2006-01-02\"}}.qcow2"
]
},
{
"type": "checksum",
"checksum_types": [
"sha256"
],
"output": "Arch-Linux-x86_64-cloudimg-{{isotime \"2006-01-02\"}}.SHA256"
},
{
"name": "sign",
"type": "shell-local",
......
Markdown is supported
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